Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site kcl-cs.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!mcvax!ukc!kcl-cs!lee From: lee@kcl-cs.UUCP (Lee McLoughlin) Newsgroups: net.lang.c Subject: Re: Re: Re: Standardization questions -- Message-ID: <423@kcl-cs.UUCP> Date: Thu, 15-Nov-84 14:56:14 EST Article-I.D.: kcl-cs.423 Posted: Thu Nov 15 14:56:14 1984 Date-Received: Sat, 17-Nov-84 04:42:14 EST References: <5367@brl-tgr.UUCP> <7200003@hpdsa.UUCP> <271@ukma.UUCP> Reply-To: lee@kcl-cs.UUCP (Lee McLoughlin) Organization: King's College Dept. of Computing, Westfield College, London, England Lines: 23 In article <271@ukma.UUCP> david@ukma.UUCP (David Herron) writes: >> A solution to this problem is suggested by the comment style of Ada, which >> is that portions of lines beginning with '--' are ignored. Since >> this would be rather unacceptable in C, and we want the preprocessor to >> handle it, the rule that leaps to mind is: >> >> Lines or portions of lines beginning with '##' are ignored, except >> within single or double quotes, or within the /* other kind of */ comment. >> This rule applies even if the remainder of the line contains '/*'. >> > >The comment style is the only thing out of Ada I like. I would >go for that kind of comment style in C too. The /* other kind of */ >comment is d*mn inconvenient sometimes too. I too would like to see a comment style similiar to ada's '--' however a brief warning I've seen at least one preprocessor for C (I think it was the Equel preprocessor in the Ingres system) which used '##'. But then again just about anything chosen runs the risk of clashing with an existing pre-processor. -- UKUUCP SUPPORT Lee McLoughlin !ukc!lmcl kcl-cs!lee "What you once thought was only a nightmare is now a reality!"