Re: lua_setfield vs lua_rawset
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_setfield vs lua_rawset
 
- From: Roberto Ierusalimschy <roberto@...>
 
- Date: 2005年10月19日 10:53:34 -0200
 
> But there is not an equivalent lua_rawsetfield(). Is there something I
> have overlooked, or is this just an oversight?
Neither one nor the other. There is no "lua_rawsetfield", but this
is not an oversight. Some people may need lua_geti (no raw version);
others may need a lua_getfieldl where the key is given as a string
with explicit length (and of course some will need a lua_rawgetfieldl
too). There are endless variations. Lua provides a few variations
for the cases we feel are more common.
-- Roberto