top level closures should work; transf is not a pass anymore; next steps for first class iterator support
This commit is contained in:
parent
f686647f58
commit
244c14db0b
17 changed files with 293 additions and 229 deletions
|
|
@ -1366,7 +1366,8 @@ proc evalAux(c: PEvalContext, n: PNode, flags: TEvalFlags): PNode =
|
|||
inc(gNestedEvals)
|
||||
|
||||
proc tryEval(c: PEvalContext, n: PNode): PNode =
|
||||
var n = transform(c.module, n)
|
||||
#internalAssert nfTransf in n.flags
|
||||
var n = transformExpr(c.module, n)
|
||||
gWhileCounter = evalMaxIterations
|
||||
gNestedEvals = evalMaxRecDepth
|
||||
result = evalAux(c, n, {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue