[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: Stefan Reich <stefan.reich.maker.of.eye@...>
- Date: Thu, 10 Nov 2011 15:20:37 +0000
On Thu, Nov 10, 2011 at 10:24 AM, Miles Bader <miles@gnu.org> wrote:
> Ok, now that _ENV replaces setfenv etc, how is one supposed to load a
> file into a particular environment in Lua 5.2?
I have another question regarding the _ENV issue. Why is setfenv not
just still provided in 5.2? It could just map to the new way (_ENV)
seamlessly.
Why break any existing code if the solution is just adding another
function in the library? I totally don't get this.
-Stefan