enabling passed functions to fire implicit method calls

This commit is contained in:
Jeremy Ashkenas
2010-01-26 02:27:19 -05:00
parent 29e4043f26
commit fb7fd53bdf
2 changed files with 4 additions and 1 deletions

View File

@@ -52,3 +52,6 @@ print Math.FastAdd(20, 20) is 40
print 100 > 1 if 1 > 0
print true unless false
print true for i in [1..3]
print_func: (f) => print(f())
print_func => true