Topic: Execution character set requirements
Author: wmm@fastdial.net
Date: Mon, 30 Oct 2000 22:24:39 GMT Raw View
In article <_5VJ5.8150$SF5.158021@ozemail.com.au>,
"michael" <serrano@ozemail.com.au> wrote:
> Jack Klein's generous website has a code example
> http://home.att.net/~jackklein/c/code/getint.html
> which "takes advantage of the fact that both C and C++ guarantee that
the
> numerical values for the characters '0' through '9' are consecutive
and in
> ascending order."
>
> I can't find support for this in the standard.
> Is this explicitly stated in the standard, or is this one of
Jack's "by
> reference to C 1990" arguments?
See http://www.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#173.
There is such a requirement (albeit deeply implicit) in
22.2.1.1.2p13. One of the actions at last week's meeting in
Toronto was to approve the resolution of that issue for inclusion
in the upcoming Technical Corrigendum, so 2.2 will thereafter
make that requirement in clearer fashion.
--
William M. Miller, wmm@fastdial.net
Vignette Corporation (www.vignette.com)
Sent via Deja.com http://www.deja.com/
Before you buy.
---
[ 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 ]
[ Note that the FAQ URL has changed! Please update your bookmarks. ]
Author: "michael" <serrano@ozemail.com.au>
Date: Mon, 30 Oct 2000 19:32:32 GMT Raw View
Jack Klein's generous website has a code example
http://home.att.net/~jackklein/c/code/getint.html
which "takes advantage of the fact that both C and C++ guarantee that the
numerical values for the characters '0' through '9' are consecutive and in
ascending order."
I can't find support for this in the standard.
Is this explicitly stated in the standard, or is this one of Jack's "by
reference to C 1990" arguments?
---
[ 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 ]
[ Note that the FAQ URL has changed! Please update your bookmarks. ]