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
7afc0e4a9c361b2ea31c2e1aa6456d62af8363f0
wren/test/language/method/not_found.wren

6 lines
133 B
Plaintext
Raw Normal View History

No more default constructors. Fixes #296.
2015-09-01 08:16:04 -07:00
class Foo {
construct new() {}
}
Start adding support for runtime errors: - Primitives can now signal an error. - An error prints a callstack and ends the current (and right now only) fiber. - Arithmetic operators error if the operand is not a number. - Real error for method not found. - Associate source file name, and method names with functions. - Debug line number info for functions. Unfortunately, this regresses perf on fib about 15%, mostly because of the better checking in arithmetic ops. There's still a bunch of clean up to do, but this is a big step in the right direction.
2014-01-01 13:25:24 -08:00
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
Foo.new().someUnknownMethod // expect runtime error: Foo does not implement 'someUnknownMethod'.
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 140ms Template: 8ms
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