[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C API parts I can skip ?
- From: Coda Highland <chighland@...>
- Date: Thu, 3 Jan 2013 11:35:02 -0800
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