Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!crdgw1!crdos1!davidsen From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) Newsgroups: comp.lang.c Subject: Re: This one bit me today Message-ID: <970@crdos1.crd.ge.COM> Date: 10 Oct 89 16:26:35 GMT References: <2437@hub.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: GE Corp R&D Center Lines: 22 In article <2437@hub.UUCP>, dougp@voodoo.ucsb.edu writes: | You can have a**p, a+*p, a-*p but not a/*p this is an inconsistancy | in the grammar. This wouldn't have been so bad but for a bug in | the Microsoft C compiler such that: | | // c=a/*p; | e=f*q; /*comment*/ | | causes the statment e=f*p; to be commented out. the /* in the line | commented out by // is seen as the beginning of the comment. This made | localizing the error an hour job. I'm missing something... what is the bug? /* starts a comment, */ ends it. What behavior would you have expected which is more correct. Please clarify, I realize I may be missing you point, but this looks like correct behavior to me. It conforms to 3.1.9 of the proposed std. -- bill davidsen (davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen) "The world is filled with fools. They blindly follow their so-called 'reason' in the face of the church and common sense. Any fool can see that the world is flat!" - anon