From -4015634144876284293
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1149ec,c5e1f3188bfb5123
X-Google-Attributes: gid1149ec,public
X-Google-Thread: f78e5,c5e1f3188bfb5123
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2000-11-01 12:48:06 PST
Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Francis Glassborow <francis.glassborow@ntlworld.com>
Newsgroups: comp.std.c++,comp.std.c
Subject: Re: C and C++ Standard incompatibility for signed character type
Date: Wed,  1 Nov 2000 20:46:56 GMT
Organization: Southfield Microcomputer SS
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <u0PexgA4$HA6EwGt@ntlworld.com>
References: <mDjqOSLqT7Z8L1bgEhHCTMYSNiXB@4ax.com>
 <jhwOgsPqbL75EwTv@romana.davros.org> <39F254C8.510803FB@null.net>
 <8666mkbq7h.fsf@gabi-soft.de>
 <slrn8vrl3c.uu1.Team-Rocket@nightrunner.nm.dnsalias.net>
 <dzziwbC2ig$5EwlD@ntlworld.com>
 <slrn8vs450.igr.Team-Rocket@nightrunner.nm.dnsalias.net>
 <c5vCyUAGAq$5EwFI@ntlworld.com> <8tov45$l1n$1@nnrp1.deja.com>
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
X-Trace: mail2news.demon.co.uk 973111623 mail2news:954 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.00 U <TilyaeicE$WmMOP9F8P4$y3lmP>
Lines: 28
Xref: supernews.google.com comp.std.c++:1886 comp.std.c:1537

In article <8tov45$l1n$1@nnrp1.deja.com>, James.Kanze@dresdner-bank.com
writes
>And I don't see what is to prevent them.  Again, take Clive's example:
>
>    CHAR_BIT == 10
>    UCHAR_MAX == 1023
>    CHAR_MAX == 255
>    CHAR_MIN == -256
>
>This obviously allows trapping values for char.  It also easily meets
>the requirements you give.

True, but does anyone know of such a system, or a reason for doing that
other than the Standard allows it.


Francis Glassborow      Association of C & C++ Users
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ 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.     ]



