Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: vandys@vsta.org Newsgroups: comp.lang.forth Subject: Re: FORTH Trouble--Please Show Me Date: 22 Oct 2012 00:24:40 GMT Lines: 30 Message-ID: References: <2017da18-ac49-4b0e-bec1-5ceffff9435e@pz10g2000pbb.googlegroups.com> <7fa71346-ad58-4baf-bf96-a1e428b5bd58@p5g2000pbs.googlegroups.com> <717bab9e-8733-4399-a881-bd6766ba6ef2@i2g2000pbi.googlegroups.com> <7x3917hacl.fsf@ruckus.brouhaha.com> X-Trace: individual.net UTIeQUkmSRpKHv4Sm6/GrQFbyDQl0kUF/lQEtb3r+8Rtok9zkAuh/87+ccWgnt5G3C X-Orig-Path: not-for-mail Cancel-Lock: sha1:9DEg8SC6xGGmeexqR+lZpkJDQng= User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/3.2.0-32-generic-pae (i686)) Xref: csiph.com comp.lang.forth:16550 Paul Rubin wrote: > "Rod Pemberton" writes: >> C has structs and arrays. That's what's needed. > Well, C doesn't really have arrays ;-). Well, no, C really does have arrays. You're confused because C also has a connection between pointer arithmetic and arrays. But C does also have plain old arrays. If I do array accesses like: int myfunc(void) { int a[4][4]; int x, y; for (x = 0; x < 4; ++x) { for (y = 0; y < 4; ++y) { a[x][y] = x*y; } } } a[] is *not* an array of pointers. a[1][2] is calculated in the classic Fortran style by scaling the indices of each subscript of the multi-dimensional array. -- Andy Valencia Home page: http://www.vsta.org/andy/ To contact me: http://www.vsta.org/contact/andy.html