lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.