This website requires JavaScript.
Explore
Mail
Help
Register
Sign In
Mirror
/
wren
Watch
1
Star
0
Fork
1
You've already forked wren
mirror of
https://github.com/wren-lang/wren.git
synced
2026-01-18 13:49:59 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
36f3059e483116b7eecf4c51cc89cbd9c1b7dcb6
wren
/
test
/
language
/
method
/
empty_block.wren
6 lines
64 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Allow empty blocks.
2013-12-29 10:46:21 -08:00
class Foo {
bar {}
}
Make constructors just methods. * Eliminate "new" reserved word. * Allow "this" before a method definition to define a constructor. * Only create a default constructor for classes that don't define one.
2015-07-10 09:18:22 -07:00
IO.print(Foo.new().bar) // expect: null
Reference in New Issue
Copy Permalink