summary refs log tree commit diff stats
path: root/compiler/cgen.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-03-05 01:14:37 +0200
committerZahary Karadjov <zahary@gmail.com>2014-03-05 02:23:53 +0200
commit5324c9ebba1aa21c893db03c1d56d3ce1b42f162 (patch)
treee800cefb7f6ee456bfa19c1dd5e6004131c23ed1 /compiler/cgen.nim
parent016492375f149a0e71239845d55f8771e151299c (diff)
downloadNim-5324c9ebba1aa21c893db03c1d56d3ce1b42f162.tar.gz
iterators now return tyIter(T);
tyIter(T) represents an "iteration yielding values of type T"

I'm planning to use that in the context of the `is` operator
supporting predicates such as `C.items is iterator` and also
in the upcoming support for higher-order inline iterators.
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r--compiler/cgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim
index c3a28527e..e8739d20e 100644
--- a/compiler/cgen.nim
+++ b/compiler/cgen.nim
@@ -1192,7 +1192,7 @@ proc nullify[T](arr: var T) =
   for i in low(arr)..high(arr):
     arr[i] = nil
 
-proc resetModule*(m: var BModule) =
+proc resetModule*(m: BModule) =
   # between two compilations in CAAS mode, we can throw
   # away all the data that was written to disk
   initLinkedList(m.headerFiles)