From -360449366799597454
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,8d9af67f0c48e4ef
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,8d9af67f0c48e4ef
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-05-02 08:52:09 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!denver-snf1.gtei.net!news.gtei.net!namche.sun.com!news2me.EBay.Sun.COM!engnews1.eng.sun.com!taumet!clamage
From: Oleg Goldshmidt <ogoldshmidt@NOSPAM.computer.org>
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Re: Unsignedness of size_t
Date: 2 May 2002 15:41:06 GMT
Organization: Speaking for myself only.
Lines: 26
Approved: stephen.clamage@sun.com (comp.std.c++)
Message-ID: <m3bsbz1w7o.fsf@localhost.localdomain>
References: <3CC7DB8F.52E75D62@bawi.org>
 <RPfz8.11$Vo2.244@paloalto-snr1.gtei.net>
 <t26KU6Avhtz8EwnZ@robinton.demon.co.uk>
Reply-To: ogoldshmidt@NOSPAM.computer.org
NNTP-Posting-Host: taumet.eng.sun.com
X-NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: 01 May 2002 22:53:15 +0300
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPND66kHMCo9UcraBAQG4iQH/W++nd4syk8a1DkPRXDKGeHpen8c2jCWp
	eYsL2bOSvUoneSryEjdR5Wtt8/+y3Rg/l/pKH7IPeebWEZaEjMjePQ==
	=rSup
X-Approved-For-Group: kanze@gabi-soft.de comp.lang.c++.moderated
X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang)
Content-Length: 1043
X-Status: $$$T
X-UID: 0000000001
Originator: clamage@taumet
Xref: archiver1.google.com comp.std.c++:10975 comp.lang.c++.moderated:42527


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

> The real trouble with unsigned is that programmers have to very careful 
> that they do not mix unsigned with signed. Mostly mixtures work because 
> unsigned is a modular type, but now and again it causes a disaster.

This is often caught by the compiler (if you heed the warnings). The
*real* trouble is when you start doing arithmetic with unsigneds. This
can - and eventually will - lead to a disaster without type mixing.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
If it aint't broken it hasn't got enough features yet.



      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]

[ 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.jamesd.demon.co.uk/csc/faq.html                       ]




