Commit Graph

6 Commits

Author SHA1 Message Date
leaf corcoran
1be72f57b7 add implicit return to end of files #46 2012-10-30 09:38:47 -07:00
leaf corcoran
bc13b1b8cc add inherited callback to classes 2012-09-08 18:08:54 -07:00
leaf corcoran
d1059b8f98 class level inheritance, changed class representation slightly
Looking up a class property will now search the parent class properties
if parent exists

Classes have a few more built in properties:

  * __name holds the name of the class as it was defined as a string
  * __base holds the instance metatable as it was defined (not dynamic)
  * __parent holds the class's parent class if it exists (not dynamic)

The way class inheritance is handled was CHANGED (uses __base instead of
looking at __index of parents metatable). Make sure you recompile all
your code if using class inheritance because old classes won't work with
new ones.
2011-12-03 19:17:06 -08:00
leaf corcoran
5d9851b8cd export keyword works before class declaration, fixed export test 2011-11-06 22:48:25 -08:00
leaf corcoran
374a7c5975 can export assignment statements 2011-11-06 22:29:39 -08:00
leaf corcoran
7f55485e62 tests for special export symbols 2011-10-09 02:00:25 -07:00