🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #1873

Re: Coding Standards are ignorant

#1873
From: Andy V
Date: Thu, 21 Mar 1996 14:01
21 lines
1652 bytes
diamond@tbj.dec.com (Norman Diamond) writes:

>Actually one famous mistake is already known with 64 bit machines.
>8-bit char, 16-bit short, 32-bit int, 64-bit long is technically valid
>but it is weird for int to have a different size from both short and long.

So why is this *weird*? One could argue with equal validity that
it is *weird* to have a 32-bit int because, after all, the PDP-11 had
a 16-bit int.

>Another mistake has been known for a couple of decades, making char the
>unit size for most C operations when characters actually require 16 or
>32 bits (or varying numbers of bits in some encoding schemes) while the
>most popular unit size is 8 bits.

I agree with you -- `char' is really `byte' mispelled. It's only because
ASCII characters fit into a `byte' that it was named `char' in the first 
place.
-- 
Andy V (A Digital spoke, not a Digital Spokesperson)
Technical Details
Message-ID: <4irnet$jf5@peavax.eng.pko.dec.com>
Path: arc1-ca.pugleaf.net!vesper.enet.dec.com!vesper
References: <4gum82$14v4@info4.rus.uni-stuttgart.de> <MIB.96Mar15170902@gnu.ai.mit.edu> <wyraut5fqq.fsf@dns.bluesky.net> <MIB.96Mar16174948@gnu.ai.mit.edu> <4ifq40$i87@sundog.tiac.net> <MIB.96Mar18105957@gnu.ai.mit.edu> <314db547.242588844@nntp.ix.netcom.com> <MIB.96Mar19105603@gnu.ai.mit.edu> <4iqjo4$2c2@usenet.pa.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!vesper.enet.dec.com!vesper
From: vesper@vesper.enet.dec.com (Andy V)
Newsgroups: gnu.misc.discuss,comp.std.c
Subject: Re: Coding Standards are ignorant
Date: 21 Mar 1996 14:01:01 GMT
Organization: Digital Equipment Corporation
Distribution: world
Message-ID: <4irnet$jf5@peavax.eng.pko.dec.com>
References: <4gum82$14v4@info4.rus.uni-stuttgart.de>  <MIB.96Mar15170902@gnu.ai.mit.edu> <wyraut5fqq.fsf@dns.bluesky.net>  <MIB.96Mar16174948@gnu.ai.mit.edu> <4ifq40$i87@sundog.tiac.net>  <MIB.96Mar18105957@gnu.ai.mit.edu>  <314db547.242588844@nntp.ix.netcom.com> <MIB.96Mar19105603@gnu.ai.mit.edu> <4iqjo4$2c2@usenet.pa.dec.com>
Reply-To: andy.vesper@eng.pko.dec.com
NNTP-Posting-Host: vesper.eng.pko.dec.com
X-Newsreader: mxrn 6.18-32