|
On 24/06/15 02:49 PM, Roberto Ierusalimschy wrote:
Yes, I'm fully aware of that. Do take a look at the link, it shows a slightly different setfenv/getfenv system using a stack field instead of a table field in the closure structure.Probably something like 5.1's setfenv()/getfenv(), but with bytecode instead?In 5.1, the environment has a fixed location (a field in the closure structure). In 5.2/5.3, the environment is the current _ENV, which can be any upvalue or local variable.
-- Roberto
-- Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.