lua-users home
lua-l archive

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


On 29 September 2012 12:09, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:

> -- luaL_setmetatable is new in 5.2:
>
> <  luaL_getmetatable(L,MYTYPE);
> <  lua_setmetatable(L,-2);
> ---
>>  luaL_setmetatable(L,MYTYPE);
>

Out of interest is there a reason for making such uses of code only
compatible with 5.2 rather than get and set which is valid for both
5.1 and 5.2?

Liam