🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #47062

Re: The triumph of Richard Heathfield, was: The demise of Richard Heathfield

#47062
From: Richard Heathfield
Date: Sat, 16 Nov 2002 21:30
44 lines
3260 bytes
"Thomas J. Boschloo" wrote:
> 
> Bryan Olson wrote:
> >
> > Thomas J. Boschloo wrote:

<snip>

> >  > I think I see an unchecked buffer here, so I assume the whole post is a
> >  > nut post to paraphrase your own words.
> >
> > You think wrong.  Perhaps you are unaware how the string class in
> > the C++ standard library works.  Chalk another one up for Richard.
> 
> You want a taste of me too Bryan? All right, by 'works' do you mean 'is
> defined' or 'is implemented'.

If the implementation does not match the language definition, the
implementation is broken.

> And if you mean 'is implemented', does
> that mean that the C++ string object dynamically grows and shrinks the
> size of an array like it should?

It grows the string when it needs to.

> If so, what does string.resize(128) do
> which I thought I saw somewhere else in the code?

It resizes the string to 128 characters. This was intended to give a
hint to the implementation that this would be a good amount of memory to
set aside in the first instance. Actually, word.reserve(128) would have
been better, but that's not germane to Mr Boschloo's erroneous point.
Bryan's point was quite correct, of course.

<snip>

Followups set.

-- 
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Technical Details
Message-ID: <3DD6B8F6.CF9E4390@eton.powernet.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!lon1-news.nildram.net!195.60.31.14.MISMATCH!news2.power.net.uk
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC85EA2.2C8E26DA@earthlink.net> <3DC95533.512AB0A3@hccnet.nl.invalid> <3DC976DA.32815A18@earthlink.net> <3DCBC0A8.F3785708@hccnet.nl.invalid> <3DCC0E5A.4C70F9F@eton.powernet.co.uk> <3DCD229B.1F302611@hccnet.nl.invalid> <3DCD3356.EBE0DD11@eton.powernet.co.uk> <3DD2955F.61C2149@hccnet.nl.invalid> <KNwA9.1284$pg4.27042958@newssvr14.news.prodigy.com> <3DD67A76.34110F39@hccnet.nl.invalid>

Show Full Headers
Complete Article Headers
Message-ID: <3DD6B8F6.CF9E4390@eton.powernet.co.uk>
Subject: Re: The triumph of Richard Heathfield, was: The demise of Richard Heathfield
Date: Sat, 16 Nov 2002 21:30:30 +0000
From: Richard Heathfield <binary@eton.powernet.co.uk>
References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC85EA2.2C8E26DA@earthlink.net> <3DC95533.512AB0A3@hccnet.nl.invalid> <3DC976DA.32815A18@earthlink.net> <3DCBC0A8.F3785708@hccnet.nl.invalid> <3DCC0E5A.4C70F9F@eton.powernet.co.uk> <3DCD229B.1F302611@hccnet.nl.invalid> <3DCD3356.EBE0DD11@eton.powernet.co.uk> <3DD2955F.61C2149@hccnet.nl.invalid> <KNwA9.1284$pg4.27042958@newssvr14.news.prodigy.com> <3DD67A76.34110F39@hccnet.nl.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!peer1.news.newnet.co.uk!lon1-news.nildram.net!195.60.31.14.MISMATCH!news2.power.net.uk
Organization: Eton Computer Systems Ltd
X-Mailer: Mozilla 4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (WinNT; I)
X-Accept-Language: en-GB,en
MIME-Version: 1.0
Newsgroups: alt.privacy.anon-server,sci.crypt,alt.fan.cult-dead-cow,alt.security.pgp
Followup-To: alt.flame
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.60.5.94
X-Trace: news2.power.net.uk 1037482376 195.60.5.94 (16 Nov 2002 21:32:56 +0100)
Lines: 46