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.
This commit is contained in:
parent
016492375f
commit
5324c9ebba
6 changed files with 18 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue