lua-users home
lua-l archive

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


On Thu, Jan 3, 2013 at 11:10 AM, Patrick <patrick@spellingbeewinnars.org> wrote:
> So the C API is very simple but that does not mean it is simple enough for
> me ;)
>
> Are these functions mostly used internally and in advanced cases:
> lua_Alloc
> lua_getallocf
> lua_setallocf
> lua_Writter

Yes, those are primarily for advanced use as the defaults are good
enough for most applications.

> How about this one, is it rare? :
> lua_xmove ( I will not be using multi-threaded C/C++)

That one's for Lua coroutines, not multithreaded C. You may or may not
have use for it.

> Are the lua_rawXXX family of functions more for advanced use as well?

The lua_rawXXX family of functions serves the same purpose as the Lua
rawXXX functions -- to perform operations that bypass metatables.
You're rather likely to need them if you're using metatables.

/s/ Adam