From -3944104895961948920
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,8d9af67f0c48e4ef
X-Google-Attributes: gidf78e5,public
X-Google-Thread: fc772,8d9af67f0c48e4ef
X-Google-Attributes: gidfc772,public
X-Google-ArrivalTime: 2002-05-04 18:02: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!sunnews1.Eng.Sun.COM!engnews1.eng.sun.com!taumet!clamage
From: James Kanze <kanze@alex.gabi-soft.de>
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Re: Unsignedness of size_t
Date: 5 May 2002 00:55:19 GMT
Organization: James Kanze
Lines: 28
Approved: stephen.clamage@sun.com (comp.std.c++)
Message-ID: <868z719qp8.fsf@alex.gabi-soft.de>
References: <3CC7DB8F.52E75D62@bawi.org>
  <3ccd96e9.5974430@news.ch.kpnqwest.net>
  <1e27bd36.0205010847.3c667d35@posting.google.com>
  <6IJvr2E$1S08Ewv8@robinton.demon.co.uk>
NNTP-Posting-Host: taumet.eng.sun.com
X-NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: 03 May 2002 17:49:39 +0200
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPNPuWkHMCo9UcraBAQEPNwIAos7NjN2lVAruR3W5fYLjGk0vpWB/Vena
	H06pYqcJji9ACQ2OdTUtA6RWD3Xgocyf3tY8bGw/pFZVhikK93eECg==
	=0LtR
X-Approved-For-Group: francis.moderator@robinton.demon.co.uk comp.lang.c++.moderated
X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang)
Content-Length: 1142
Originator: clamage@taumet
Xref: archiver1.google.com comp.std.c++:11043 comp.lang.c++.moderated:42666


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

|>  And the real irony of size_t is that there is also
|>  ptrdiff_t. Think about it. Either the latter has to be a larger
|>  type than that used for size_t or size_t must be limited to half
|>  its range (in any program that uses ptrdiff_t)

Or the result of taking the difference between two pointers isn't
always defined.

Guess which solution was adopted in C (and continued in C++).

-- 
James Kanze                                mailto:kanze@gabi-soft.de
Conseils en informatique oriente objet/
                     Beratung in objektorientierter Datenverarbeitung
Ziegelhttenweg 17a, 60598 Frankfurt, Germany Tel. +49(0)179 2607481

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




