Yes, hence the 'basically'. In particular, block([x],local(x),x)-x and
lambda([x],local(y),x-y)(y) are both = 0, so it really is the 'same
variable', just with different properties.
On Tue, Jul 27, 2010 at 11:59, Robert Dodier <robert.dodier at gmail.com>wrote:
> On Tue, Jul 27, 2010 at 9:39 AM, Stavros Macrakis <macrakis at alum.mit.edu>
> wrote:
>
> > Yes, "local" basically gives you a fresh 'x' variable inside the block.
>
> Well, more specifically, local(x) saves and restores the property list,
> right? That's a fresh variable only if the name of the variable isn't
> remembered somewhere. Creating a gensym would yield a variable
> which has an empty property list, and its name is (presumably)
> unknown thus far.
>
> Hmm, I don't know if local(x) does anything to the function slot ...
>
> best
>
> Robert Dodier
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>