Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!kddlab!titcca!sragwa!wsgw!socslgw!diamond From: diamond@csl.sony.co.jp (Norman Diamond) Newsgroups: comp.lang.c Subject: Re: This one bit me today Message-ID: <11001@riks.csl.sony.co.jp> Date: 25 Oct 89 10:31:09 GMT References: <2432@hub.UUCP> <568@sppy00.UUCP> <750@philmtl.philips.ca> <41019@bu-cs.BU.EDU> <2509@munnari.oz.au> <41063@bu-cs.BU.EDU> Reply-To: diamond@ws.sony.junet (Norman Diamond) Organization: Sony Computer Science Laboratory Inc., Tokyo, Japan Lines: 31 In article <41063@bu-cs.BU.EDU> austin@bucsf.bu.edu (Austin Ziegler) writes: > Every pascal compiler I have seen accepts both '{' and '(*' as >characters which start comments. Yes. The standard requires it too. >That means you could have a { (* *) } >comment or a (* { } *) comment. No. { (* *) } start part of comment end of comment syntax error (* { } *) start part of comment end of comment syntax error >Beyond that, and including that, >Pascal DOES NOT NEST. Even >though they are two different sets of characters, they both delimit >comments. Exactly. -- Norman Diamond, Sony Corp. (diamond%ws.sony.junet@uunet.uu.net seems to work) Should the preceding opinions be caught or | James Bond asked his killed, the sender will disavow all knowledge | ATT rep for a source of their activities or whereabouts. | licence to "kill".