From 5324c9ebba1aa21c893db03c1d56d3ce1b42f162 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 5 Mar 2014 01:14:37 +0200 Subject: 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. --- compiler/cgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/cgen.nim') 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) -- cgit 1.4.1-2-gfad0