This commit is contained in:
Araq 2014-03-28 08:40:15 +01:00
commit 12e3c11eb6
3 changed files with 7 additions and 1 deletions

View file

@ -28,6 +28,7 @@ macro async2(prc: stmt): stmt {.immediate.} =
# -> iterator nameIter(): PFutureBase {.closure.} = <proc_body>
# Changing this line to: newIdentNode($prc[0].ident & "Iter") # will make it work.
var iteratorNameSym = genSym(nskIterator, $prc[0].ident & "Iter")
#var iteratorNameSym = newIdentNode($prc[0].ident & "Iter")
var procBody = prc[6].convertReturns(retFutureSym)
var closureIterator = newProc(iteratorNameSym, [newIdentNode("PFutureBase")],