Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #5191
| From | "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: '5'-'0' = 5 alway? guaranteed? |
| Date | 2011-05-20 00:39 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <ir45rn$n1k$1@dont-email.me> (permalink) |
| References | <t_dBp.16910$7H.13151@newsfe08.ams2> <ir3qlq$a84$1@dont-email.me> <vieBp.666$Ky.145@newsfe24.ams2> <4dd5764b$0$2413$cc2e38e6@news.uslec.net> <digits-20110519220842@ram.dialup.fu-berlin.de> |
* Stefan Ram, on 19.05.2011 22:09: > Noah Roberts<dont@email.me> writes: >> He's wrong actually. It's a really good bet, but by no means guaranteed. > > Then how for any digit character c, the expression > (do_narrow(c,dfault)-'0') evaluates to the digit value of > the character? (according to ISO/IEC 14882:2003(E) > 22.2.1.1.2 char do_narrow(charT c, char dfault) const, > Effects) Noah is in my killfile so I don't see his article. And he knows that. And needless to say, Noah's public insinuation that I was guessing, knowing full well that I don't see his article, is just what one can expect from him. If you want to check out the formal it's at the very start of the standard somewhere . You can download the latest draft (of the next standard) from the committee pages. Cheers & hth., - Alf -- blog at <url: http://alfps.wordpress.com>
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
'5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 20:13 +0100
Re: '5'-'0' = 5 alway? guaranteed? "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-19 21:28 +0200
Re: '5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 20:35 +0100
Re: '5'-'0' = 5 alway? guaranteed? Noah Roberts <dont@email.me> - 2011-05-19 12:58 -0700
Re: '5'-'0' = 5 alway? guaranteed? Victor Bazarov <v.bazarov@comcast.invalid> - 2011-05-19 16:10 -0400
Re: '5'-'0' = 5 alway? guaranteed? Pete Becker <pete@versatilecoding.com> - 2011-05-19 16:21 -0400
Re: '5'-'0' = 5 alway? guaranteed? "crea" <no@invalid.com> - 2011-05-19 21:24 +0100
Re: '5'-'0' = 5 alway? guaranteed? "Alf P. Steinbach /Usenet" <alf.p.steinbach+usenet@gmail.com> - 2011-05-20 00:39 +0200
csiph-web