Added typeinfo module

This commit is contained in:
dom96 2011-06-09 22:23:29 +01:00
commit 8b98ba9a63
5 changed files with 210 additions and 3 deletions

View file

@ -1889,3 +1889,4 @@ proc `[]=`*[T](s: var seq[T], x: TSlice[int], b: openArray[T]) =
else:
raise newException(EOutOfRange, "differing lengths for slice assignment")
proc getTypeInfo*[T](x: T): pointer {.magic: "ToAny".}