Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
Description
def re {
if (i ==1) return i
1.times
}
print re(4)
The re(--i) was not recognized inside the closure.
If this is supposed to be such, it's a real limitation.
Suppose I want to visit a tree...
def visit(node) {
if (node is a leaf)
else {
node.children.each
}
}