[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: module() with _ENV
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 31 Mar 2010 19:11:07 +0200
On Mar 31, 2010, at 2:15 PM, Roberto Ierusalimschy wrote:
> BTW, note that setfenv/getfenv are not moving to the debug library, but
> out of the language, as functions will not have environments anymore.
* setfenv becomes 'set the upvalue named _ENV' (which is clearly
a debug operation). If the function is the main function of a chunk,
it must have only one upvalue, named _ENV.
Doesn't that imply that there still will be a setfenv/getfenv which will work in term of that new _ENV thingy, no?