From 421809929087475748
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,36a60df62b48e6f4,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-01-11 12:45:01 PST
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Server-Uuid: 95b8ca9b-fe4b-44f7-8977-a6cb2d3025ff
From: "K. Noel Belcourt" <kbelco@sandia.gov>
Newsgroups: comp.std.c++
Subject: clause 2.9 Preprocessing numbers [lex.ppnumber]
Organization: Sandia National Labs
Message-ID: <3C3F4ACF.EF2E6DA2@sandia.gov>
MIME-Version: 1.0
X-Trace: sass2141.sandia.gov 1010780799 16808 134.253.161.66 (11 Jan
 2002 20:26:39 GMT)
X-Complaints-To: usenet@sass2141.sandia.gov
NNTP-Posting-Date: Fri, 11 Jan 2002 20:26:39 +0000 (UTC)
X-Accept-Language: en
X-Filter-Version: 1.8 (sass165)
X-WSS-ID: 102195455831282-01-01
Content-Type: text/plain; 
 charset=us-ascii
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Date: Fri, 11 Jan 2002 14:42:58 CST
Lines: 32
Xref: archiver1.google.com comp.std.c++:8988

I'm a bit confused about production pp-number.  Why can a pp-number
accept a nondigit following a digit?  I understand integral and floating

literals well enough, but where would a token of this type be used?

pp-number : ...
                     pp-number nondigit

This implies that 123_ABC is a valid preprocesing number?

[attempting to ask and answer my own question]

Per clause 2.9.2, if a macro doesn't replace _ABC with something that
permits
the translation phase (7) to convert it to a valid integral or floating
literal, then
it's an error?

Is this correct?

Thanks,

Noel Belcourt



---
[ 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.research.att.com/~austern/csc/faq.html                ]



