From 2468820972493862232 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-05 13:02:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!denver-snf1.gtei.net!news.gtei.net!namche.sun.com!sunnews1.Eng.Sun.COM!engnews1.eng.sun.com!taumet!clamage From: marg64@yahoo.com (Vahan Margaryan) Newsgroups: comp.std.c++,comp.lang.c++.moderated Subject: Re: Unsignedness of size_t Date: 5 May 2002 19:56:03 GMT Organization: http://groups.google.com/ Lines: 30 Approved: stephen.clamage@sun.com (comp.std.c++) Message-ID: <44d2ad1a.0205040218.33205009@posting.google.com> References: <3CC7DB8F.52E75D62@bawi.org> NNTP-Posting-Host: taumet.eng.sun.com Content-Transfer-Encoding: 8bit X-NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: 4 May 2002 03:18:51 -0700 X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPNT3ckHMCo9UcraBAQGgRAH/alELTo+7zuQTCRIHaamWmPuBAF4KSLos pZc3o5upmT6DDTCCjynUHny3LVU+RpJFid6LjB/0fsLTeKnzJtFL0g== =P5n3 X-Approved-For-Group: jep@[151.161.11.6] comp.lang.c++.moderated X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Content-Length: 1612 X-Trace: posting.google.com 1020507531 10321 127.0.0.1 (4 May 2002 10:18:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 May 2002 10:18:51 GMT Content-Length: 681 Originator: clamage@taumet Xref: archiver1.google.com comp.std.c++:11048 comp.lang.c++.moderated:42693 Jack Klein wrote in message news:... > > Can you have a negative number of people, or an object containing a > negative number of bytes? > I believe you may need to manipulate negative number of people or bytes. Please see Francis Glassborow's reply to Geoff Field in this thread and/or my previous post on this thread. I have joined a project using unsigned in those 'logically unsigned' places, and it often turned out - after a bug was painfully found - that yet another 'logically' unsigned had to be signed instead. The practice of using signed wherever possible has never caused me any trouble. -Vahan [ 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 ]