Just starting to use Lua. It's really a nice language. However, in the documentation i seem not to be able to find answers to a few very basic questions:
At startup i only want to LOAD a lua-script, not to execute it already. With lua_dofile i can load a script, but it gets executed immediatly. Is there a way to load and compile code, but not to run it immediately?
Of course, after i have loaded a script, i would like to be able to run it. And maybe even run it several times. But again, i could only find lua_dofile/lua_dostring to run a complete script (that means the main-body of the script, of course i can simply call one function inside the script). But those functions also first load and compile the script, which i want to avoid. Any other function to execute the complete script and not only some function?
Thanks in advance,