[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Let's not break existing scripts.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 10 Nov 2011 20:05:30 -0200
> FWIW, I use the following rendition of Sergey Rhozenko's original 5.2 setfenv:
> Aside from its reliance on debug info, is there anything else subtly
> broken in that function?
As already pointed out, a function may not have an _ENV upvalue, making
that setfenv raises an error. (Note that the function explicitly
cares for that case.)