From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!nslave.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader2.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: newbie asks: is there a better way to declare arrays? References: <87d6yp109l.fsf@uol.com.br> Mail-Copies-To: never From: Erik Naggum Message-ID: <3223989282671407@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Mar 2002 16:34:37 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader2.kpnqwest.net 1015000477 193.71.199.50 (Fri, 01 Mar 2002 17:34:37 MET) NNTP-Posting-Date: Fri, 01 Mar 2002 17:34:37 MET Xref: archiver1.google.com comp.lang.lisp:27653 * synthespian | I want to declare a 4 X 4 array "Declare"? You seem to want to construct it. | Is there another way by which I could declare the first line of the array? Is there some word in your native tongue that looks a lot like "declare", but which has a sensible meaning in your context? I find it very odd, even when I try to interpret this is in "Java/C++ mode", because even in those languages, a declaration cannot initialize anything; a definition might, and a call to a run-time constructor | mean, in a less tedious way? E.g., declaring the whole list of the | Nominativ at once: (list 'der 'die 'das 'die) and fit it into the array? See the specification of make-array and look for the :initial-contents argument in particular. You might notice something quite interesting about how the syntax for arrays work with how you initialize them. /// -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief.