Logo
Explore Help
Register Sign In
retoor/wren
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
c03d86c28b540998350a34005732533e8799424c
wren/test/language/this/closure.wren
T

9 lines
173 B
Plaintext
Raw Normal View History

feat: implement closure over "this" in methods and fix upvalue closing order
2013-12-21 23:55:08 +00:00
class Foo {
fix: remove default constructors and require explicit construct new() for all user classes
2015-09-01 15:16:04 +00:00
construct new() {}
feat: replace new keyword with this constructor syntax and ClassName.new() calls across core library and docs
2015-07-10 16:18:22 +00:00
getClosure { Fn.new { toString } }
feat: unify block, function, and method body parsing to support single-expression implicit returns
2014-04-03 14:48:19 +00:00
toString { "Foo" }
feat: implement closure over "this" in methods and fix upvalue closing order
2013-12-21 23:55:08 +00:00
}
feat: replace new keyword with this constructor syntax and ClassName.new() calls across core library and docs
2015-07-10 16:18:22 +00:00
var closure = Foo.new().getClosure
feat: replace IO class with System class and remove separate IO module
2015-09-15 14:46:09 +00:00
System.print(closure.call()) // expect: Foo
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.27.2 Page: 102ms Template: 12ms
Dark
English
English
Licenses API