lua-users home
lua-l archive

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

On Wed, Oct 19, 2011 at 12:51 PM, Stefan Reich
<> wrote:
> Hmm. I'd like to say a general thing about Lua 5.2.
> On Mon, Oct 17, 2011 at 1:22 AM, Petite Abeille
> <> 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
> they?)

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