Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: raja naresh <rajanaresh89@gm...> - 2011-11-06 07:16:51
I just want to know why I get an error when I do the following:
> (setf map (make-array '((parse-integer "5"))))
*** - MAKE-ARRAY: dimension (PARSE-INTEGER "5") is not of type `(INTEGER 0
Why doesn't make-array take the integer returned by PARSE-INTEGER. INTEGERP
on the value returned by PARSE-INTEGER gives T. Any kind of help is
appreciated. Thank you.
From: raja naresh <rajanaresh89@gm...> - 2011-11-06 07:57:35
Thanks a lot. I just realized I never evaluated for a particular element
inside a list which is an argument for some function. I've written macros
before so I know how to evaluate a form but it didn't strike me in this
case. Anyway, thanks a lot.
On Sun, Nov 6, 2011 at 2:35 AM, Sam Steingold <sds@...> wrote:
> > * raja naresh <enwnanerfu89@...> [2011-11-06 02:16:23 -0500]:
> >> (setf map (make-array '((parse-integer "5"))))
> > *** - MAKE-ARRAY: dimension (PARSE-INTEGER "5") is not of type `(INTEGER
> > (,ARRAY DIMENSION-LIMIT))
> the single quote prevents evaluation.
> please try (setf map (make-array `(,(parse-integer "5"))))
> Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X
> My inferiority complex is not as good as yours.