From -8994635158370388120
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,b16403548038ddc7,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1990-10-18 16:00:00 PST
Path: gmdzi!unido!mcsun!uunet!lll-winken!elroy.jpl.nasa.gov!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
Posted: Fri Oct 19 00:00:00 1990
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.


