[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lunar and Inheritance
- From: Mario Dörr <mario@...>
- Date: Fri, 17 Dec 2004 11:26:28 +0100
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