Dear Dan,
That's right, thank you.
A different problem is that the following code does not work. Looks
not like a bug but an issue (one should use make_array if one wants
local dynamically sized arrays) but not documented (afaik).
---------------------------text.mac-------------------
use_fast_arrays : true;
trial(a):= block([myvar, i],
/*local (i)*/ /* Comment this or not, it's the same */
array(i,a),
for myvar : 1 thru 7 do i[myvar] : [],
i[1])$
---------------------------text.mac end---------------
Session:
bash-2.05$ maxima
GCL (GNU Common Lisp) Version(2.4.0) Sat Jul 14 20:26:43 GMT 2001
Licensed under GNU Library General Public License
Contains Enhancements by W. Schelter
Maxima 5.6 Sat Jul 14 20:26:37 GMT 2001 (with enhancements by W. Schelter).
Licensed under the GNU Public License (see file COPYING)
(C1) load("text.mac");
(D1) text.mac
(C2) trial(30);
Error: |$a| is not of type NUMBER.
Fast links are on: do (si::use-fast-links nil) for debugging
Error signalled by MACSYMA-TOP-LEVEL.
Broken at MACSYMA-TOP-LEVEL. Type :H for Help.
MAXIMA>>:q
(C3)
--
Pedro Fortuny Ayuso -------------> www.maths.qmul.ac.uk/~pf
School of Mathematical Sciences. Queen Mary College, Univ. London
Mile End Road, London E1 4NS, UK ------> www.qmul.ac.uk
P.Fortuny@maths.qmul.ac.uk Tfn. Nr. 44 20 7882 5493