[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 5.2 and 5.1
- From: Paul K <paulclinger@...>
- Date: Mon, 8 Apr 2013 18:56:29 -0700
> I expect that most 5.1 libraries are easily ported to 5.2, especially
> if they are written in C. See this thread: http://lua-users.org/lists/lua-l/2012-09/msg00596.html
This is interesting. Given that there are only few functions that need to be mapped, is there a "good" way to provide a library that could work with both Lua 5.1 and Lua 5.2 run-times?
Both Linux and OSX provide a way to do dynamic symbol lookup (-undefined dynamic_lookup). It should be possible to provide "proxy" for those functions that have changed between 5.1 and 5.2 and resolve them at run time depending on the version of loaded Lua libraries.
Or am I completely off with this idea?