From -4117003279082490062
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,8d9af67f0c48e4ef,start
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,8d9af67f0c48e4ef,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-04-29 06:02:38 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!news.mel.connect.com.au!news.unimelb.edu.au!bounce-back
From: Sungbom Kim <musiphil@bawi.org>
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Unsignedness of size_t
Date: 29 Apr 02 13:02:17 GMT
Organization: BiOSYS Co., Ltd. (http://www.biosys.com)
Lines: 23
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
Message-ID: <3CC7DB8F.52E75D62@bawi.org>
NNTP-Posting-Host: murlibobo.cs.mu.oz.au
X-Trace: ariel.ucs.unimelb.edu.au 1020085356 16079 128.250.37.153 (29 Apr 2002 13:02:36 GMT)
X-Complaints-To: news@news.unimelb.edu.au
NNTP-Posting-Date: 29 Apr 2002 13:02:36 GMT
X-Original-Date: 25 Apr 2002 09:15:42 -0400
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPMgBdkHMCo9UcraBAQHMCwH/Xhh/fiVuKD3SR5SEaqK8XP92nAwzjoON
	FaFOXwnfVz25L1zGitca3cYM2+0CgYHl5twvQujQCJSW4frrwovGXA==
	=/vJ/
X-WARNING-TO-MODERATORS: This article has been processed and
    accepted using a cryptographic program by the moderator
    of comp.lang.c++.moderated. Its content must not be changed or it
    will be automatically cancelled. If you don't like the
    article or its crossposting, return it to the submitter. 
    (You can delete this message if you are the last
    moderator to see it.)
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)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
	iQBFAgUAPM1EXOEDnX0m9pzZAQFgtgF+IvDxL0EFGNWblY53bz0fcwvRXKGdv26M
	O5LE2cnK6ZbIlqxo5vaqz7+QC2tYHc2p
	=FJ4A
Xref: archiver1.google.com comp.std.c++:10871 comp.lang.c++.moderated:42305

I often find it somewhat "flawed" that the standard requires the data
type representing sizes of objects to be an unsigned integral type.

They are just arithmetic quantities, like 'number of people'; no one
would recommend using unsigned numbers for those kind of quantities.
They have semantics of neither modular arithmetics nor bit arrays.
As Stroustrup mentioned in TC++PL 4.4, usage of unsigned integer types
for that kind of situation is discouraged. It also causes many problems
in arithmetics mixed with signed integers.

I know that it is from C and that it's too late to change anything,
but I just want to hear what others have to say.

-- 
Sungbom Kim <musiphil@bawi.org>

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


