From -6830892963175876574
X-Google-Thread: f78e5,59c47fe3b9dfca8e
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: stephan.bergmann@sun.com (Stephan Bergmann)
Newsgroups: comp.std.c++
Subject: Re: UCNs in phase 1
Date: Fri, 21 Jan 2005 17:23:04 GMT
Organization: Sun Microsystems
Lines: 31
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <csqfpj$4c3$1@new-usenet.uk.sun.com>
References: <1106212184.380589.161860@z14g2000cwz.googlegroups.com>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.demon.co.uk 1106328197 18482 158.152.254.254 (21 Jan 2005 17:23:17 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Fri, 21 Jan 2005 17:23:17 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla Thunderbird 1.0 (X11/20041206)
X-Accept-Language: en-us, en
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-Path: comp-std-cpp-robomod!not-for-mail
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j0LHN486021648;
	Sat, 22 Jan 2005 04:23:04 +1100 (EST)
X-NNTP-Posting-Date: 21 Jan 2005 08:50:59 GMT
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:3919

neil@daikokuya.co.uk wrote:
> In view of lex.phases paragraph 1, given a translation unit
> 
> #define str(x) #x
> char array[] = str($);
> 
> what characters should array[] contain?

My understanding is that str($) results in a string literal of either of 
the two forms

   "\uXXXX"  "\UXXXXXXXX"

(where each "X" is a hex-digit).  Note that it does *not* result in a 
string literal of either of the two forms

   "\\uXXXX"  "\\UXXXXXXXX"

At least that is how I interpret 16.3.2/2.

On a related note, what puzzles *me* is what the string literal "\$" 
shall denote.

-Stephan

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



