🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Some Lua questions
Hi,
Ok i''ve got the Lua 5 Beta version recently and noticed that they added threads which is a cool thing because i missed the possibility of unloading a script and i suppose it would be possible with the use of threads. But i was wondering where on earth the "lua_closethread()" function is hidden?! Maybe the function will be added to the Lua 5 release version?!
Is there another way to unload a script?!
Ok another thing i was wondering about, if something went wrong with the compilation of a lua script, lua throws an error, call the panic function and exit the program, but i wont exit my program Is there a way not to exit the program?!
Thanks alot
Mfg Impz0r
I haven''t used LUA5 yet, but in LUA4 you would declare your own _PANIC or _ERROR function, so that your function would be called instead of the default one (which calls exit() )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement