TInteger vs TOrdinal

This commit is contained in:
Araq
2012-05-22 19:37:26 +02:00
parent 7f64e95747
commit 1c01c78be5

View File

@@ -49,9 +49,13 @@ type
## a type description (for templates)
void* {.magic: "VoidType".} ## meta type to denote the absense of any type
TInteger* = int|char|int8|int16|int32|int64|bool|enum
TInteger* = int|int8|int16|int32|int64
## type class matching all integer types
TOrdinal* = TInteger|bool|enum
## type class matching all ordinal types; however this includes enums with
## holes.
TNumber* = TInteger|float|float32|float64
## type class matching all number types