lua-users home
lua-l archive

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


Hi all!

I have some problems using Lunar and class inheritance. I have some functions exported to lua (to call from lua the c++ functions) in the baseclass. Now i have a derive from the baseclass and i have added some new functions to this class. This new functions i also would export to lua with lunar. The problem is now that this new function cannot be called, i get the error message "testapp.lua:6: attempt to call method `changeFrequency' (a nil value)". The functions from the baseclass are accessible. I registered first the functions from the baseclass:

Lunar<CStator>::Register( luaState );

then the functions from the derivation

Lunar<CFrequency>::Register( luaState );

Has anybody an idea whats wrong?

Thank you in advance!
Greetings Mario