heres my c++ code that does the binding:
module(luaVM) [ class_<CBox>("CBox") .def(constructor<>()) .def("someFunc", &CBox::someFunc) ];
heres the lua code i attempt to run:
t = new CBox()p = t:someFunc()
The above code results in a silent crash (Im guessing this is windows segfault)
If I attempt to define the base class in lua I get a compile time error.
module(luaVM) [ class_<CMyBase>("CMyBase") .def(constructor<>()) ];
heres the error:
\include\luabind\detail\constructor.hpp(99): error C2259: 'CMyBase' : cannot instantiate abstract class
so i leave the above code commented out because im not sure if I need to bind the base class to lua. maybe it has something to do with this?
neko
[edited by - nekoflux on March 31, 2004 5:47:26 PM]