lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> But, if I load a chunk containing one or more Lua functions, how do I cause the individual functions to be "registered"?
>
> I've found no examples of this.


any global function in your chunk will be "registered".  More
accurately, it will be part of the global lua_State and you can then
call it.  Local functions will be inaccessible outside the chunk
itself meaning you can't grab them from C under normal circumstances.

wes