[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Let's not break existing scripts.
- From: Petite Abeille <petite.abeille@...>
- Date: Thu, 10 Nov 2011 19:09:35 +0100
On Nov 10, 2011, at 7:00 PM, Peter Cawley wrote:
> On Thu, Nov 10, 2011 at 5:58 PM, Petite Abeille
> <email@example.com> wrote:
>> On Nov 10, 2011, at 6:20 PM, Peter Cawley wrote:
>>> It is also impossible to write setfenv in 5.2 in such a way as to work
>>> with bytecode chunks whose debug information has been stripped.
>> Why? _ENV is always the first upvalue, no? No need to look it up by name, no? Its position will suffice, no?
> Only for top-level chunks. Functions within them can have _ENV at any
> position, or not at all.
Ah, bummer :( Oh, well, then one would be better off keeping these debug info if one is inclined to fiddle with _ENV :)