Subject: Need help with indexing declared arrays (Lisp)
From: Wolfgang Jenkner
Date: Thu, 22 Jan 2004 20:22:36 +0100
Robert Dodier <robert_dodier@yahoo.com> writes:
> I'm attempting to index multidimensional declared arrays
> (as declared with "array(e,10,10,10)" for example) in Lisp.
> It seems the way to do this is to use MAREF like this:
>
> (MAREF (TRD-MSYMEVAL |$e| '|$e|) 4 2 3))
I'd suggest to access the underlying lisp array via
(symbol-array (mget '|$e| 'array))
See the comment which I added some time ago to the beginning of
src/marray.lisp.
I don't think you should use TRD-MSYMEVAL, which is mainly for
translated code.
Wolfgang