lua-users home
lua-l archive

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


On Tue, Apr 16, 2013 at 8:14 PM, Dimiter 'malkia' Stanev <malkia@gmail.com> wrote:
I only wish there was easier way to do that in lua/luajit, a pattern along the line of "local something = something" to be just "import something" or "use something" or something like it.

It's 'import pairs, ipairs from _G' in Moonscript (which sometimes seems like a catalog of would-be features discussed on lua-l) 

OK, not difficult to write a macro to do this, but that feels over-the-top.  Otherwise it really does need to be a core change because it generates local slots which can only be assigned at compile-time.