Article View: comp.std.c++
Article #553backslash-newline inside C++ comments?
From: Paul Eggert
Date: Thu, 18 Oct 1990 23:00
Date: Thu, 18 Oct 1990 23:00
15 lines
884 bytes
884 bytes
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.
Technical Details
Message-ID:
<1990Oct18.230000.14131@twinsun.com>Path:
arc1-ca.pugleaf.net!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!eggertShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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