From: <ma...@go...> - 2007-11-30 06:58:22
|
> Is there any reason the Lua wrapper specifically checks for C function > (lua_iscfunction) before calling functions in the .fn table? If this > was changed to lua_isfunction we could easily add methods in Lua. > Hello there, There is no particular reason. In fact it sounds like a good idea to change it. If you go to Swig/Lib/lua/luarun.swg line 330, and change it there, you can alter the behaviour. I will add it in to the svn. Thanks for the feedback. Mark Gossage |