Mail Archives: djgpp/1997/03/25/13:10:29
On Sun, 23 Mar 1997 18:43:27 GMT, DJ Delorie <dj AT delorie DOT com> wrote:
>
> > You can use both C style comments (/* */) and C++ style comments (//)
> > with DJGPP.
>
> Not true.
>
> You can use both styles of comments in any C++ source, regardless of
> compiler, but "//" comments may not be used in C source.
Really? This would make djgpp incompatible with much GNU C source.
Perhaps you mean to say "//" comments may not be used in ANSI C source.
File: gcc.info, Node: C++ Comments, Next: Dollar Signs, Prev: \
Function Prototypes, Up: C Extensions
C++ Style Comments
==================
In GNU C, you may use C++ style comments, which start with `//'
and continue until the end of the line. Many other C implementations
allow such comments, and they are likely to be in a future C
standard. However, C++ style comments are not recognized if you
specify `-ansi' or `-traditional', since they are incompatible with
traditional constructs like `dividend//*comment*/divisor'.
N.
-==(UDIC)==-
"Als Gregor Samsa eines Morgens aus unruhigen Träumen erwachte, fand
er sich in seinem Bett zu einem ungeheueren Ungeziefer verwandelt."
-Franz Kafka, "Die Verwandlung"
- Raw text -