This website requires JavaScript.
Explore
Help
Register
Sign In
retoor
/
wren
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
289dd99c2636954df11adb9956ddbe7567c32dff
wren
/
test
/
closure
/
closed_closure_in_function.wren
T
11 lines
104 B
Plaintext
Raw
Normal View
History
Unescape
Escape
feat: implement closures with upvalue support and statement/expression separation
2013-12-04 15:43:50 +00:00
var f = null
{
var local = "local"
feat: migrate all function literals from
fn
syntax to
new Fn
block syntax
2014-04-03 02:41:53 +00:00
f = new Fn {
feat: rename IO.write to IO.print and add Unicode escape support in strings
2014-01-05 20:27:12 +00:00
IO.print(local)
feat: implement closures with upvalue support and statement/expression separation
2013-12-04 15:43:50 +00:00
}
}
f.call // expect: local
Reference in New Issue
Copy Permalink