diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-03-28 14:19:32 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2017-03-28 14:19:32 +0300 |
commit | 01207b6cfda148c513d5b3fe7db024d1b5881a95 (patch) | |
tree | 6bae25a048f6c2f9c840b17ea5ac57e4c60cb9f8 /lib | |
parent | 01bc5f32d665ea1c72590609391769cef60d6e83 (diff) | |
download | Nim-01207b6cfda148c513d5b3fe7db024d1b5881a95.tar.gz |
restore the T1-T9 types and clarify how generic concepts work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim index 94e10d7df..0e777b707 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -98,6 +98,17 @@ type SomeNumber* = SomeInteger|SomeReal ## type class matching all number types + T1* = auto + T2* = auto + T3* = auto + T4* = auto + T5* = auto + T6* = auto + T7* = auto + T8* = auto + T9* = auto + ## Helper types for writing implicitly generic procs + proc defined*(x: untyped): bool {.magic: "Defined", noSideEffect, compileTime.} ## Special compile-time procedure that checks whether `x` is ## defined. |