lua-users home
lua-l archive

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


On Nov 10, 2011, at 11: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?

load?

It takes an environment in 5.2:

load (ld [, source [, mode [, env]]])

http://www.lua.org/work/doc/manual.html#pdf-load