Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site ncoast.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: net.lang.c,net.micro.pc,net.unix Subject: C'mon, guys! Message-ID: <1194@ncoast.UUCP> Date: Sun, 25-May-86 12:21:25 EDT Article-I.D.: ncoast.1194 Posted: Sun May 25 12:21:25 1986 Date-Received: Tue, 27-May-86 07:16:06 EDT References: <200@pyuxv.UUCP> <1181@ncoast.UUCP> <350@dg_rtp.UUCP> <3423@ukma.UUCP> <357@dg_rtp.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: net.lang.c,net.micro.pc Organization: North Coast Computer Resources Lines: 42 Xref: watmath net.lang.c:9162 net.micro.pc:8418 net.unix:7973 Expires: Quoted from <357@dg_rtp.UUCP> ["Re: allocating arrays"], by throopw@dg_rtp.UUCP (Wayne Throop)... +--------------- | > david@ukma.UUCP (David Herron) | >> throopw@dg_rtp.UUCP (Wayne Throop) | >>> allbery@ncoast.UUCP (Brandon Allbery) | >>> | ??? | >>> | Consider an array of 15 pointers to arrays of doubles: | >>> | double (*parray[15])[]; | | >>> double (*parray[15])[]; means: | >>> an indefinitely-sized array of (or a pointer to) | >>> an array of 15 | >>> (double *) | | >>Wrong. It means just what the original poster said it meant. It is an | >>array of 15 pointers to arrays of double. | | > I respectively submit that you're full of it and that Brandon is correct. | | I exasperatedly submit that I'm quite empty of it, and that Brandon is | as wrong as wrong can be. Also, after saying I'm wrong, your examples | go on to support my position strongly, so you've succeeded in puzzling | me no end, as well as prolonging this discussion beyond it's natrual | span. +--------------- I concede. But it wasn't pointer-vs.-array that threw me; f[] and *f are identical, whereas f[5] and *f are NOT and neither are f[] = {3} and *f. What threw me was getting my insides and outsides confused. C declarations are giving me gray hairs! Anyone for Modula-2? The declaration is correct, the cast should be to (double **), and MSC is as screwed up as everything else I've ever seen from Microsoft. (So what's new?) I'm interested in knowing why your sys5 passed it without an illegal pointer combo message, though. --Brandon -- decvax!cwruecmp!ncoast!allbery ncoast!allbery@Case.CSNET ncoast!tdi2!brandon (ncoast!tdi2!root for business) 6615 Center St. #A1-105, Mentor, OH 44060-4101 Phone: +01 216 974 9210 CIS 74106,1032 MCI MAIL BALLBERY (part-time) PC UNIX/UNIX PC - which do you like best? See <1129@ncoast.UUCP> in net.unix.