On Mon, Jul 25, 2011 at 7:58 PM, Hisham <[email protected]> wrote:
> installing two instances (with the hash-bang line pointing to the
> right version) sounds less confusing in terms of setup and
> configuration.

That makes sense - it would be IMHO a most unusual requirement that LR
support two different versions using one instance!

> smooth transition. Coding in the common subset of Lua 5.1 and 5.2 and
> testing everything twice doesn't sound very pleasant,

It's surprisingly trouble free, in my experience. I did some
portability code, and use that, e.g. use the new load() instead of
loadstring + setfenv.  (utils.lua from Penlight has the portable
load() ).   Otherwise, it behaves like a 'strict' 5.1 (and testing
against LuaJIT had already cleaned up any lost 5.0-isms.

No reason to ditch the module() calls yet - 'deprecated' ain't 'not
supported' ;)

steve d.

------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to