Path: utzoo!attcan!uunet!mcsun!hp4nl!philapd!ssp11!dolf From: dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer) Newsgroups: comp.lang.c Subject: Re: Re^2: Why does C hate 2d arrays? Message-ID: <755@ssp11.idca.tds.philips.nl> Date: 27 May 90 21:18:15 GMT References: <990@s6.Morgan.COM> <265e1de4-26d.17comp.lang.c-1@vpnet.chi.il.us> Organization: Philips Information Systems, Apeldoorn, The Netherlands Lines: 17 In article <265e1de4-26d.17comp.lang.c-1@vpnet.chi.il.us> akcs.fish@vpnet.chi.il.us (Gil Winograd) writes: >Recently I had to write C code to handle a data structure which >consisted of *variably dimensioned* AND *variable size per dimension* >arrays. Of course, it was implemented as a one-dimensional array, >through which I had to go through involved calculations to get the >index right >Does Algol/Pascal handle this situation any better? No, the number of dimensions is fixed in Algol6{0,8}/Pascal. APL & APL2 are the only languages I know of which allow changing the number of dimensions of an array at run-time. Maybe we should continue this non-C discussion in comp.misc ? -- Dolf Grunbauer Tel: +31 55 433233 Internet dolf@idca.tds.philips.nl Philips Information Systems UUCP ...!mcsun!philapd!dolf Dept. BS Software, P.O. Box 245, 7300 AE Apeldoorn, The Netherlands read: error in reading .signature