On Tue, Apr 16, 2013 at 5:39 PM, steve donovan <steve.j.dono...@gmail.com> wrote: > On Tue, Apr 16, 2013 at 7:58 AM, Choonster TheMage > <choonster.2...@gmail.com> wrote: >> >> All the modules still use the module function, which doesn't work with >> 5.2 unless compiled with LUA_COMPAT_ALL defined. Is this intended? > > > I guess it was simply the line of least resistance. Distributions will use > LUA_COMPAT_ALL (although embedders might make other choices). If the > global 'module' does not exist, it's actually fairly straightforward to > write a replacement (code on request) > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Luarocks-developers mailing list > Luarocks-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/luarocks-developers >
I already wrote a quick module and package.seeall replacement using setfenv from Penlight's utils module (and added a single require line at the top of LR's command_line.lua file). There's no particular reason I didn't compile 5.2 with LUA_COMPAT_ALL, I just didn't think to enable it. ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers