mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
d1059b8f98
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. |
||
---|---|---|
.. | ||
assign.lua | ||
bubbling.lua | ||
class.lua | ||
comprehension.lua | ||
cond.lua | ||
export.lua | ||
funcs.lua | ||
import.lua | ||
lists.lua | ||
literals.lua | ||
loops.lua | ||
string.lua | ||
stub.lua | ||
switch.lua | ||
syntax.lua | ||
tables.lua | ||
using.lua | ||
whitespace.lua | ||
with.lua |