[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: calling class functions from lua
- From: Peter Shook <pshook@...>
- Date: Mon, 19 May 2003 18:45:29 -0400
I would just let __index point to a Lua table which has the method
It's also a good idea to print out the error message from your script
If you want, you can use luaL_loadfile instead of luaL_loadbuffer.
You may also want to run your application within a call to lua_cpcall
and print out any error message.
- Peter Shook
ah ok, i see, they i was wondering y i wasnt getting any arguments,
so doing something like returning a call metatable(__call) when u call Load
and it goes to get(__index)
should fix the problem ?
and i guess its the fact that im calling a function but call doesnt handle
it, is the reason y the script
exits after the function it called.