Re: array and make_array



Wolfgang Jenkner <wjenkner@inode.at> writes:

> 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)                                  []
> 

In fact, checking the value of `arrays' is quite useless here because
of

(C1) use_fast_arrays:true;
(D1)                                 TRUE
(C2) array(a,5);
(D2)                      #(NIL NIL NIL NIL NIL NIL)
(C3) arrays;
(D3)                                  []

But what I had in mind was that shadowing worked properly

(C4) a[3]:7;
(D4)                                   7
(C5) block([a],array(a,10),a[3]:63,a);
(D5)             #(NIL NIL NIL 63 NIL NIL NIL NIL NIL NIL NIL)
(C6) a;
(D6)                       #(NIL NIL NIL 7 NIL NIL)

Wolfgang

-- 
wjenkner@inode.at