summary refs log tree commit diff stats
path: root/lib/impure
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2012-10-03 21:11:41 +0300
committerZahary Karadjov <zahary@gmail.com>2012-10-04 15:37:26 +0300
commitd9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735 (patch)
tree2e547df69eead6665ca4127f63872f0bbd67f275 /lib/impure
parenta6d5707faff21722f22f91c56704c44fc03d47f6 (diff)
downloadNim-d9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735.tar.gz
syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info.

* nkMacroStmt has been removed
   Macro statements are now mapped to regular nkCall nodes.
   The support for additional clauses (such as else, except, of, etc)
   have been restored - they will now appear as additional arguments
   for the nkCall node (as nkElse, nkExcept, etc nodes)

* fixed some regressions in the `is` operator and semCompiles
Diffstat (limited to 'lib/impure')
-rwxr-xr-xlib/impure/graphics.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/impure/graphics.nim b/lib/impure/graphics.nim
index 1d538b790..b3bc578d0 100755
--- a/lib/impure/graphics.nim
+++ b/lib/impure/graphics.nim
@@ -22,7 +22,7 @@ type
 
   PSurface* = ref TSurface ## a surface to draw onto
   TSurface* {.pure, final.} = object
-    w*, h*: int
+    w*, h*: Natural
     s*: sdl.PSurface
   
   EGraphics* = object of EIO