Dan Stanger <dan.stanger@ieee.org> writes:
> This is not true. There is a global variable arrays, which holds arrays created
> with array.
> In the following example you can see how the array exists after the block is
> exited.
>
> block([a],array(a,6));
> (D2) a
> (C3) arrays;
> (D3) [a]
> but with local, the results are different.
>
> block([b],local(b),array(b,6));
> (D6) b
> (C7) arrays;
> (D7) [a]
>
> Dan Stanger
>
> Wolfgang Jenkner wrote:
>
Since you seem to object to what I stated may I draw your attention to
the final sentence in my message
> >
> > Note that all this works properly only for use_fast_arrays:true, otherwise
> > i is not local.
> >
This gives for your example
Maxima 5.9.0pre-cvs (with enhancements by W. Schelter).
Licensed under the GNU Public License (see file COPYING)
(C1) use_fast_arrays:true;
(D1) TRUE
(C2) block([a],array(a,6));
(D2) #(NIL NIL NIL NIL NIL NIL NIL)
(C3) arrays;
(D3) []
Wolfgang
--
wjenkner@inode.at