[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: converting modules in written in C for Lua 5.1 to Lua 5.2
- From: liam mail <liam.list@...>
- Date: Sat, 29 Sep 2012 12:18:46 +0100
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