This one bit me today

Dave Jones djones at megatest.UUCP
Wed Oct 25 10:49:17 AEST 1989


>From article <41063 at bu-cs.BU.EDU>, by austin at bucsf.bu.edu (Austin Ziegler):
> 
>      Every pascal compiler I have seen accepts both '{' and '(*' as
> characters which start comments.  That means you could have a { (* *) }
> comment or a (* { } *) comment.

BRZZZZT. I'm sorry, Mr. Ziegler, but we have some lovely consolation
prizes waiting for you back stage.

In every Pascal I am familiar with, the following is a complete comment:

  { (* *)

The type of comment delimiters does not have to match. _Standard_Pascal_
by Cooper mentions this explictly on page 7, and sez, paraphrasing now,
"Don't DO that, squid-brain."



More information about the Comp.lang.c mailing list