lua-users home
lua-l archive

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


On Fri, Nov 26, 2010 at 18:22, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> How about in future libraries linking to an external symbol, "lua52",
>> can be a dummy variable. The linker will thus fail if you try to link
>> a lua51 library with a lua52 core.
>
> This already happens because several symbols in Lua 5.1 are abssent in Lua 5.2
> (but are supported via macros). For instance, luaL_register and lua_tonumber.
>
>

I do like the idea of a dummy variable named lua52 (or even lua5_2 for
the sake of keeping the decimal point :-p) just to ensure linking
fails with the wrong version. 5.2 may already have some symbols
removed versus 5.1, but maybe some future version won't and will have
this problem?

-- 
Sent from my toaster.