[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: upvalues: doc suggestions and another opinion
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 24 Apr 2000 10:24:25 -0300
> > 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...