[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: setting _ENV in Lua 5.2 when loading a file...?
- From: Petite Abeille <petite.abeille@...>
- Date: Thu, 10 Nov 2011 11:40:30 +0100
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?
It takes an environment in 5.2:
load (ld [, source [, mode [, env]]])