c376d88e61
super at top level: Allow the compiler to continue compilation after erroring. Added two more tests.
2015-01-11 17:44:10 -06:00
3490c8d2f3
Segfault when calling super at top-level with no arguments.
...
If enclosingClass is null, we can't proceed with compilation since we don't have its name.
2015-01-09 15:14:06 -06:00
7f90485cff
Let the user know the arity of a missing method in the error message.
2015-01-04 14:42:11 -05:00
09c707e16a
More tests for super calls.
2014-04-19 11:51:36 -07:00
da4cadf16b
Unify body handling.
...
Blocks, functions, and methods now have the same code for handling
their bodies.
This means that single-line methods work like single-line functions:
they return the result of their expression.
2014-04-03 07:48:19 -07:00
d146018559
Convert all fns to block arg syntax.
2014-04-02 19:41:53 -07:00
e8791b6bab
Don't inherit metaclasses.
...
Also disallow super() in static methods. It won't do anything
useful (it always just delegates to Class) anyway.
2014-01-17 17:29:10 -08:00
eb1c0284dd
Handle references to fields with inheritance in closures.
2014-01-15 07:03:24 -08:00
b979272305
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
1503e74233
Get rid of unused DUP instruction.
2013-12-23 11:37:47 -08:00
ad1fcf66bc
Superclass calls in closures.
2013-12-22 20:46:12 -08:00
6c3aa85228
Make IO a static class instead of a singleton.
2013-12-21 19:25:09 -08:00
e83d0bb360
Setters!
2013-12-20 07:05:31 -08:00
4d67f2270a
Use more conventional syntax for constructors.
...
They are now invoked like "new Foo".
Also, superclass constructors are now much less semantically
and syntactically weird. Since the instance is created before
any constructor is called, there's no point in time where the
instance isn't there.
2013-12-19 07:02:27 -08:00
70e548657e
Don't allow "super" outside of methods.
2013-12-15 22:08:40 -08:00
7fe60499db
Get rid of my name from TODOs. Anyone can do them.
2013-12-14 15:28:18 -08:00
d54bca3067
Get basic superclass method calls working.
2013-12-13 08:37:49 -08:00