lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > However, not being able to modify upvalues is quite painful in terms
> > of the effect on my code.
> [...]
> That's not what the patch did. [...] To let your example work as intended,
> you need shared activation records (probably garbage collected) and that
> would cost a lot of performance. [...]

That is exactly our motivation to use the '%'. We feel that many 
programmers (mainly those with some functional-programming background) 
would confuse this aspect, that is, would assume that what you can access 
is the outer variable, and not a private copy of it. So the '%' at least 
makes you pay attention to this fact...

-- Roberto