[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setting _ENV in Lua 5.2 when loading a file...?
- From: Petite Abeille <petite.abeille@...>
- Date: Thu, 10 Nov 2011 16:41:57 +0100
On Nov 10, 2011, at 4:20 PM, Stefan Reich wrote:
> Why break any existing code if the solution is just adding another
> function in the library? I totally don't get this.
Because, as we all know, setfenv is SCARY!!!! :P
Or, as Roberto puts it, "too powerful" [sic].
But, of course, this is all hogwash as set/getfenv can simply be reimplemented in terms of _ENV if one wants to.
So it looks like a political decision to summerly execute setfenv now that it's out of favor and reeducate the masses to worship _ENV instead. As someone said, "We've always been at war with Eastasia".
We will miss you setfenv (or just re-implement you in plain Lua) :)