lua-users home
lua-l archive

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

On Thu, Nov 10, 2011 at 10:24 AM, Miles Bader <> 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)

Why break any existing code if the solution is just adding another
function in the library? I totally don't get this.