[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 (was: modules, require, magic)
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 19 Oct 2011 14:48:17 -0400
On Wed, Oct 19, 2011 at 12:51 PM, Stefan Reich
> Hmm. I'd like to say a general thing about Lua 5.2.
> On Mon, Oct 17, 2011 at 1:22 AM, Petite Abeille
> <email@example.com> wrote:
>> No. _ENV is the latest iteration of many attempt to get ride of setfenv/getfenv in 5.2.
> I must say that, so far, I cannot really see the value in some of the
> proposed changes of 5.2.
> So Lua 5.2 breaks the most fundamental function I need for making
> sandboxes (setfenv). There's new code to replace it, but people do not
> seem 100% sure if it really does the same thing as setfenv. (Or do
loadin will be what you want.
For those of us who've made complicated sandboxes where setfenv and
the debug library can still exist, you will appreciate the
introduction of _ENV. setfenv was and is a huge PITA to sandbox.
The _ENV griping is a real joke to be honest. Everything you used to
do you can still do. Moving the environment to an upvalue makes sense
and is quite elegant. People are just mad their silly designs that
relied on heavy use of setfenv are "broken". They will grow up or use
>> And 5.2 is a work of fiction as it hasn't been released.
> Is there any kind of date yet for when they might plan to release it?
> What's the development process here? I'm very curious. Roberto...?
"When it's done".
- Patrick Donnelly