lua-users home
lua-l archive

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


On 02.12.2010 2:28, Pierre-Yves Gérardy wrote:
Are there other potential traps? On what did you stumble while learning the language?
1) 'a and b or c'. First, the meaning of the construction. Second, the foot-shooter when 'b' may be 'false' or 'nil'. 2) The stack doesn't grow automatically when used from C. There's a number of stack slots reserved for last called C function. For more slots luaL_checkstack/lua_checkstack should be called.

--
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru