line comments (## vs. //)

jim at ISM780B.UUCP jim at ISM780B.UUCP
Thu Nov 29 06:36:44 AEST 1984


>Couldn't you use something like
>
>        # define // /*
>
>to accomplish this. This would also allow you to make anything else comment
>delimiters rather easy. Seems to simply of a solution, what's wrong with it????

a) // is not a legal macro name
b) /* introduces a comment even for cpp, so it can't be part of defined text
c) the desired semantics for // are different (comment terminated by newline)
   from those of /* (terminated by */)

-- Jim Balter, INTERACTIVE Systems (ima!jim)



More information about the Comp.lang.c mailing list