From -2529948277245646691
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 14:33:02 PST
Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!feeder.qis.net!dispose.news.demon.net!demon!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: jthill@telus.net (Jim Hill)
Newsgroups: comp.std.c++,comp.std.c
Subject: Re: C and C++ Standard incompatibility for signed character type
Date: Wed,  1 Nov 2000 22:32:13 GMT
Organization: biological <-- hey! a one-word oxymoron!
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <1ejf6yz.9uij0jagmv3hN%jthill@telus.net>
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> <u0PexgA4$HA6EwGt@ntlworld.com>
X-Trace: mail2news.demon.co.uk 973117941 mail2news:4976 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Authentication-Warning: backdraft.briar.org: smap set sender to <news@slb6.atl.mindspring.net> using -f
X-Server-Date: 1 Nov 2000 22:23:15 GMT
User-Agent: MacSOUP/2.4.6
Lines: 30
Xref: supernews.google.com comp.std.c++:1894 comp.std.c:1543

Francis Glassborow <francis.glassborow@ntlworld.com> wrote:

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

That anyone's still selling? I don't, but there's a well-respected
example that could reasonably be implemented that way: on the DEC-10

# define CHAR_BIT  9
# define UCHAR_MAX 511
# define CHAR_MAX  127
# define CHAR_MIN -128

would make perfect sense -- I don't see any need to support 9-bit chars
here beyond the dubious proposition that broken code should work anyway.

There is a requirement in C99 that unsigned char[N*sizeof(T)] be large
enough to hold any T[N] value. Is there any requirement that N be the 
_smallest_ multiple of sizeof(T) large enough to hold a T[N]? I don't 
see it on a cursory search, nor why there should be one.

Jim

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



