Path: utzoo!utgpu!watserv1!watmath!att!rutgers!sun-barr!apple!usc!wuarchive!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.std.c++ Subject: Re: backslash-newline inside C++ comments? Message-ID: <484@taumet.com> Date: 19 Oct 90 18:41:58 GMT References: <1990Oct18.230000.14131@twinsun.com> Organization: Taumetric Corporation, San Diego Lines: 16 eggert@ata.twinsun.com (Paul Eggert) writes: >Is the sequence > // a co\ > mment >a legal comment in ANSI C++? ANSI C's translation phases are as follows: There is no such thing as ANSI C++ yet, and indeed this is one of the issues which must be resolved by the ANSI C++ (X3J16) committee. There was a heated debate on this very point in comp.lang.c++ (I think) some months ago. Different C++ compilers currently treat this differently. To be safe, do not use //-style comments with continued lines. Use /* */ comments instead. -- Steve Clamage, TauMetric Corp, steve@taumet.com