Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!ames!lll-winken!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond!diamond From: diamond@diamond.csl.sony.junet (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <10264@socslgw.csl.sony.JUNET> Date: 20 May 89 05:13:53 GMT References: <17812@cup.portal.com> <607@kl-cs.UUCP> <749@mccc.UUCP> Sender: news@csl.sony.JUNET Reply-To: diamond@csl.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 15 In article <749@mccc.UUCP> pjh@mccc.UUCP (Pete Holsberg) writes: >Can you explain why compilers produce different code for "a[i]" and "*(a+i)"? >Thanks. Hear, hear. Yes, there are a lot of broken implementations, and there are a lot more implementations which are not broken but just wierd. Yes, this is one of the ways in which many implementations are wierd, and I also wonder why. Anyone have any ideas? -- Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.co.jp@relay.cs.net) The above opinions are my own. | Why are programmers criticized for If they're also your opinions, | re-implementing the wheel, when car you're infringing my copyright. | manufacturers are praised for it?