Logo
Explore Mail Help
Register Sign In
Mirror/wren
1
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
5fb6186d7d034db7c800b7a5b2f236f1269c1620
wren/test/language/assignment/local.wren

11 lines
182 B
Plaintext
Raw Normal View History

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
Fn.new {
Unary operators and variable assignment.
2013-11-13 07:10:52 -08:00
var a = "before"
Clean up text handling a bit: - Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
IO.print(a) // expect: before
Unary operators and variable assignment.
2013-11-13 07:10:52 -08:00
a = "after"
Clean up text handling a bit: - Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
IO.print(a) // expect: after
Unary operators and variable assignment.
2013-11-13 07:10:52 -08:00
Clean up text handling a bit: - Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00
IO.print(a = "arg") // expect: arg
IO.print(a) // expect: arg
Allow empty argument list methods. - Compile them as calls and definitions. - Use them for call(), clear(), run(), try(), and yield(). - Update the docs.
2015-02-26 23:08:36 -08:00
}.call()
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 81ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API