Added short type aliases to peon stdlib + minor comment fixes
This commit is contained in:
parent
bf2be7deac
commit
c666c66813
|
@ -789,7 +789,6 @@ proc isAny*(typ: Type): bool =
|
|||
if condition.kind.isAny():
|
||||
return true
|
||||
else:
|
||||
discard
|
||||
return false
|
||||
|
||||
|
||||
|
|
|
@ -71,6 +71,16 @@ type auto* = object {
|
|||
# Some convenience aliases
|
||||
type int* = int64;
|
||||
type float* = float64;
|
||||
type i64* = int64;
|
||||
type u64* = uint64;
|
||||
type i32* = int32;
|
||||
type u32* = uint32;
|
||||
type i16* = int64;
|
||||
type u16* = uint64;
|
||||
type i8* = int32;
|
||||
type u8* = uint32;
|
||||
type f64* = float64;
|
||||
type f32* = float32;
|
||||
type SignedInteger* = int64 | int32 | int16 | int8;
|
||||
type UnsignedInteger* = uint64 | uint32 | uint16 | uint8;
|
||||
type Integer* = SignedInteger | UnsignedInteger;
|
||||
|
|
Loading…
Reference in New Issue