From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: harley@pauillac.inria.fr (Robert Harley) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/03 Message-ID: <612k6f$i79@news-rocq.inria.fr>#1/1 X-Deja-AN: 277572958 Organization: I.N.R.I.A Rocquencourt Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Richard A. O'Keefe (ok@goanna.cs.rmit.edu.au) wrote: >Doesn't work. > >There's an illuminating discussion in the rationale of the POSIX.1 >standard [...] > >THIS is Nick Maclaren's point. Given > char **triMat; >the declaration > double const * const * const constTriMat = triMat; >is simply illegal. Sure, and it's "simply illegal" to assume that integer arithmetic is done in binary. >It's illegal because there are plausible implementations where it won't work. >[...ad hominem deleted...] But guess what, there are other implementations that are not only plausible but actually exist! And they have implementation-dependent features left open by the standard, and extensions not specified by the standard! Gasp! Over here in the real world, we compile our programs with them: compilers for which integers are in binary and type qualifiers give warnings sometimes, not errors. If you are allergic to such a warning, stick in a cast as Nick suggested. >>Whereas your beloved Fortran checks that the user's assumptions about >>lack of aliasing are correct, perhaps? > >Yes, there are indeed static checkers available for Fortran that will >check such assumptions. I have not used any myself, but I am aware of >two. Ah, so in the case of C refer to the standard only, in order to criticize limitations in it. But for other languages, dredge up extra features you "are aware of" in implementations you've never used. Everybody is fooled by this devastating ploy, so we'll now delete our programs, apps and O.S.es, the transport protocols that will send this message and so on, and rewrite them in a superior language. -- Rob. .-. Robert.Harley@inria.fr .-. / \ .-. .-. / \ / \ / \ .-. _ .-. / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / `-' `-' \ / \ / \ \ / `-' `-' \ / `-' Linux + 500MHz Alpha + 256MB SDRAM = heaven `-'