[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua Programming Gems, Event System Code Example class impl broken?
- From: Joe Andresen <joe.andresen@...>
- Date: Fri, 12 Feb 2010 12:42:14 -0800
I'm trying to use the class implementation in the code example
found here.
when i try to do the following i get a nil function call.
thing = class()
function thing:Hello()
print("hello")
end
SpecialThing = class(thing)
SpecialThing:Hello(); --nil
should this work?
If so, then i think my use of modules combined with this is causing the problem.