From: G. Milligan
Subject: Arrays
Date: 
Message-ID: <38F16DE0.546439A4@home.com>
is it possible to have a 3d dimensional array? as in make-array '(6 7
7)?
I have to make a 3d connect4 game for school, and it would be much
simpler if this was possible.

thanks

From: Andrew K. Wolven
Subject: Re: Arrays
Date: 
Message-ID: <38F1470D.CFA0B4D3@redfernlane.org>
"G. Milligan" wrote:

> is it possible to have a 3d dimensional array? as in make-array '(6 7
> 7)?
> I have to make a 3d connect4 game for school, and it would be much
> simpler if this was possible.
>
> thanks

sure looks like you're on the right track to me.

(make-array '(6 7 7))

#3A(((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL))
    ((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL))
    ((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL))
    ((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL))
    ((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL))
    ((NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)
     (NIL NIL NIL NIL NIL NIL NIL)))
From: G. Milligan
Subject: Re: Arrays
Date: 
Message-ID: <38F1FBAC.65EA6285@home.com>
I thought I was too, but for some reason I keep getting this:
> (make-array '(6 7 7))            
error: bad argument type - (6 7 7) 




"Andrew K. Wolven" wrote:
> 
> "G. Milligan" wrote:
> 
> > is it possible to have a 3d dimensional array? as in make-array '(6 7
> > 7)?
> > I have to make a 3d connect4 game for school, and it would be much
> > simpler if this was possible.
> >
> > thanks
> 
> sure looks like you're on the right track to me.
> 
> (make-array '(6 7 7))
> 
> #3A(((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL))
>     ((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL))
>     ((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL))
>     ((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL))
>     ((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL))
>     ((NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)
>      (NIL NIL NIL NIL NIL NIL NIL)))
From: Rahul Jain
Subject: Re: Arrays
Date: 
Message-ID: <8csk95$fio$1@joe.rice.edu>
In article <·················@home.com> posted on Monday, April
10, 2000  8:03 AM, "G. Milligan" <·······@home.com> wrote:
> I thought I was too, but for some reason I keep getting this:
>> (make-array '(6 7 7))            
> error: bad argument type - (6 7 7) 
> 
> 

Is this Common Lisp?
If so, which compiler?

-- 
-> -\-=-=-=-=-=-=-=-=-=-/^\-=-=-=<*><*>=-=-=-/^\-=-=-=-=-=-=-=-=-=-/- <-
-> -/-=-=-=-=-=-=-=-=-=/ {  Rahul -<>- Jain   } \=-=-=-=-=-=-=-=-=-\- <-
-> -\- "I never could get the hang of Thursdays." - HHGTTG by DNA -/- <-
-> -/- http://photino.sid.rice.edu/ -=- ·················@usa.net -\- <-
|--|--------|--------------|----|-------------|------|---------|-----|-|
   Version 11.423.999.210020101.23.50110101.042
   (c)1996-2000, All rights reserved. Disclaimer available upon request.
From: G. Milligan
Subject: Re: Arrays
Date: 
Message-ID: <38F201E1.4E9E8423@home.com>
I'm using XLISP

Rahul Jain wrote:
> 
> In article <·················@home.com> posted on Monday, April
> 10, 2000  8:03 AM, "G. Milligan" <·······@home.com> wrote:
> > I thought I was too, but for some reason I keep getting this:
> >> (make-array '(6 7 7))
> > error: bad argument type - (6 7 7)
> >
> >
> 
> Is this Common Lisp?
> If so, which compiler?
> 
> --
> -> -\-=-=-=-=-=-=-=-=-=-/^\-=-=-=<*><*>=-=-=-/^\-=-=-=-=-=-=-=-=-=-/- <-
> -> -/-=-=-=-=-=-=-=-=-=/ {  Rahul -<>- Jain   } \=-=-=-=-=-=-=-=-=-\- <-
> -> -\- "I never could get the hang of Thursdays." - HHGTTG by DNA -/- <-
> -> -/- http://photino.sid.rice.edu/ -=- ·················@usa.net -\- <-
> |--|--------|--------------|----|-------------|------|---------|-----|-|
>    Version 11.423.999.210020101.23.50110101.042
>    (c)1996-2000, All rights reserved. Disclaimer available upon request.
From: David Hanley
Subject: Re: Arrays
Date: 
Message-ID: <38F1E98A.E0DE83E5@ncgr.org>
"G. Milligan" wrote:

> I'm using XLISP

I'd suggest using clisp if possible.  You'll be able to find
tutorials, references, and get help from comp.lang.lisp
folks much more easily.  I suggest clisp because it's
easy to install and has good help facilities.

dave
From: Marco Antoniotti
Subject: Re: Arrays
Date: 
Message-ID: <lwaej1ng4z.fsf@parades.rm.cnr.it>
"G. Milligan" <·······@home.com> writes:

> I'm using XLISP

Bad idea.  XLisp is not Common Lisp.  Dump it and get either CMUCL
(www.cons.org), CLisp (clisp.cons.org), LWW (www.xanalys.com) or ACL
(www.franz.com).

Cheers

-- 
Marco Antoniotti ===========================================
PARADES, Via San Pantaleo 66, I-00186 Rome, ITALY
tel. +39 - 06 68 10 03 17, fax. +39 - 06 68 80 79 26
http://www.parades.rm.cnr.it/~marcoxa
From: Thomas A. Russ
Subject: Re: Arrays
Date: 
Message-ID: <ymi8zylvrkk.fsf@sevak.isi.edu>
"G. Milligan" <·······@home.com> writes:

> 
> I thought I was too, but for some reason I keep getting this:
> > (make-array '(6 7 7))            
> error: bad argument type - (6 7 7) 

Which Lisp are you using?

-- 
Thomas A. Russ,  USC/Information Sciences Institute          ···@isi.edu