Article View: comp.lang.c.moderated
Article #2523Re: Is 300F a valid float constant?
From: rdwells
Date: Sat, 06 Apr 1996 14:41
Date: Sat, 06 Apr 1996 14:41
27 lines
1537 bytes
1537 bytes
Thad Smith wrote: > > In article <4jv7es$d2i@solutions.solon.com>, rdwells@mmm.com wrote: > >VC++ rejects 300F as a float constant, but my reading of > >the syntax part of section 6.1.3.1 of the standard indicates > >that it should be valid: > > > > 300 is a valid digit-sequence > > a digit-sequence alone is a valid fractional-constant > > You must have one of the flawed copies of the ANSI/ISO standard. In > the definition of fractional-constant there is a period after > digit-sequence (at least in the ANSI original). Thanks much for the clarification. Is this one of those examples of what I get for trusting the text of the ANSI standard in Schildt's book? [No. This bug existed in the ISO standard when Schildt got a copy. Note: ISO, not ANSI. ISO's fault. -mod] (Or do I lose my c.l.c.moderated posting privileges for even admitting that I own (and use (the left-hand pages of)) a copy?) [I do too. The annotations can be sort of amusing, actually; it's like reading those "best of student bloopers" things. -mod]
Technical Details
Message-ID:
<4k5vqs$a1c@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4jv7es$d2i@solutions.solon.com> <4k1qpn$5o6@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: rdwells@mmm.com Newsgroups: comp.lang.c.moderated Subject: Re: Is 300F a valid float constant? Date: 6 Apr 1996 08:41:32 -0600 Organization: 3M Company Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4k5vqs$a1c@solutions.solon.com> References: <4jv7es$d2i@solutions.solon.com> <4k1qpn$5o6@solutions.solon.com> NNTP-Posting-Host: solutions.solon.com X-Mailer: Mozilla 2.0 (WinNT; I)