Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!ucivax!ucla-cs!twinsun!eggert From: eggert@ata.twinsun.com (Paul Eggert) Newsgroups: comp.std.c++ Subject: backslash-newline inside C++ comments? Message-ID: <1990Oct18.230000.14131@twinsun.com> Date: 18 Oct 90 23:00:00 GMT Sender: news@twinsun.com Organization: Twin Sun, Inc Lines: 15 Originator: eggert@ata Nntp-Posting-Host: ata Is the sequence // a co\ mment a legal comment in ANSI C++? ANSI C's translation phases are as follows: 1. Trigraphs are replaced by non-trigraph equivalents. 2. backslash-newline pairs are removed 3. The file is decomposed into preprocessing tokens and white space (including comments). ... If C++ is like ANSI C here, then it seems that the above sequence must be a legal C++ comment.