lua-users home
lua-l archive

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



On 27/11/14 06:24 PM, Luiz Henrique de Figueiredo wrote:
Hi! Is there any way to have Lua 5.1 (actually LuaJIT) and Lua 5.2
(LuaJIT doesn't support _ENV) on the same program?
I don't know about LuaJIT but you can have two versions of Lua in the
same program by building custom versions using one.c and a header file
that redefines all external symbols to have a different prefix, such
as lua51 and lua52. You'll need to compile your program modules with
the header files for each version. See this:
	http://lua-users.org/lists/lua-l/2014-07/msg00164.html

Uhh so if I have some Lua .so's I can't dlopen them?

--
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.