From 027f30610e44633b661befcca1b5dd39e9eaa283 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 19 Dec 2013 01:06:38 +0200 Subject: static params: expr[T] is now static[T] This introduces tyStatic and successfully bootstraps and handles few simple test cases. Static params within macros are no longer treated as PNimrodNodes - they are now equivalent to constants of the designated type. --- lib/system.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index dc5a406d1..e58378c05 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2641,7 +2641,7 @@ when hostOS != "standalone": x[j+i] = item[j] inc(j) -proc compiles*(x: expr): bool {.magic: "Compiles", noSideEffect.} = +proc compiles*(x): bool {.magic: "Compiles", noSideEffect.} = ## Special compile-time procedure that checks whether `x` can be compiled ## without any semantic error. ## This can be used to check whether a type supports some operation: -- cgit 1.4.1-2-gfad0 )ahoang <ahoang@tilde.institute>
summary refs log blame commit diff stats
path: root/koch.nim
blob: 8992271bfd9961239124f5f8d2fa7e0020c7d687 (plain) (tree)
1
2
3
4
5
6
7
8
9
10