In article <·······················@news1.rdc1.bc.home.com>, "Kee"
<···@unforgettable.com> wrote:
> Creating array is done by using make-array function.
>
> I am having trouble using a variable to set dimensions.
> for example
> (setf *test* 3)
> (setf *test-array* (make-array *test*)) ==> creates array with one
> dimension
> (setf *test-array* (make-array '(*test* *test*)) ==>> gives me an error
> saying that *test* is an illegal dimension.
>
> is there a way to get around this problem?
Sure.
(setf *test-array* (make-array (list *test* *test*)))
You need to understand the basic evaluation rules.
Consult your nearest Common Lisp manual.
Rainer Joswig, ISION Internet AG, Harburger Schlossstra�e 1,
21079 Hamburg, Germany, Tel: +49 40 77175 226
Email: ·············@ision.de , WWW: http://www.ision.de/