Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!decwrl!decvax!ima!cfisun!lakart!dg From: dg@lakart.UUCP (David Goodenough) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <524@lakart.UUCP> Date: 1 May 89 15:19:01 GMT References: <879@twwells.uucp> Organization: Lakart Corporation, Newton, MA Lines: 17 From article <879@twwells.uucp>, by bill@twwells.uucp (T. William Wells): > In article <9987@claris.com> krazy@claris.com (Jeff Erickson) writes: > : In fact, since a[i] = *(a+i), and (a+i)=(i+a), you can actually write i[a] > : for a[i] and most compilers will take it! (Every one I've tried has, anyway.) > > Try Microsoft. I don't know if it is true of the latest version, but > one of about two years ago wouldn't take it. GreenHills (the compiler supplied with our machine) gets all bent out of shape about it too. Makes it a bear to compile obfuscated C programs, but not much of a handicap otherwise :-) It does get *(a + i) right though ..... -- dg@lakart.UUCP - David Goodenough +---+ IHS | +-+-+ ....... !harvard!xait!lakart!dg +-+-+ | AKA: dg%lakart.uucp@xait.xerox.com +---+