metalua icon indicating copy to clipboard operation
metalua copied to clipboard

lua 5.2 - remove getfenv in base.lua

Open davidm opened this issue 13 years ago • 4 comments

For Lua 5.2 compatibility, remove getfenv in base.lua.

davidm avatar Jan 25 '12 07:01 davidm

Whatever you do, please do keep MetaLua compatible with 5.1

agladysh avatar Jan 25 '12 08:01 agladysh

I plan to overhaul this in the repackaging branch, together with cutting metalua into independent libs.

On Wed, Jan 25, 2012 at 8:41 AM, David Manura < [email protected]

wrote:

For Lua 5.2 compatibility, remove getfenv in base.lua.


Reply to this email directly or view it on GitHub: https://github.com/fab13n/metalua/issues/12

Fabien Fleutot +--- | 33 chemin de Mange-Pommes | 31520 Ramonville Saint-Agne -- France | mobile: +33 6 28 06 09 97 | office: +33 5 61 00 06 49 | home: +33 5 61 75 05 67

fab13n avatar Jan 25 '12 10:01 fab13n

Yes, IMHO, Metalua should run on both 5.1 and 5.2 and parse/compile both 5.1 and 5.2 (including 5.2 from 5.1 and vice-versa).

BTW, the lexer currently lexes a superset of 5.1 and 5.2, but I'm not aware of 5.2 support in the parser yet. We'll need to think about how best to handle the 5.2 migration. See also http://lua-users.org/wiki/LuaVersionCompatibility for ideas.

davidm avatar Jan 26 '12 00:01 davidm

+1

alexbw avatar Nov 26 '15 15:11 alexbw