anonymous procs implemented; however no closure support yet

This commit is contained in:
Araq 2011-08-01 08:39:27 +02:00
commit f0145ba7c5
5 changed files with 27 additions and 6 deletions

View file

@ -684,6 +684,8 @@ proc transform(c: PTransf, n: PNode): PTransNode =
of nkBracketExpr:
result = transformArrayAccess(c, n)
of nkLambda:
n.sons[codePos] = PNode(transform(c, n.sons[codePos]))
result = PTransNode(n)
when false: result = transformLambda(c, n)
of nkForStmt:
result = transformFor(c, n)