🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #3496

Re: The realloc question: rationale?

#3496
From: Kerry Kimbrough
Date: Sun, 25 Feb 1996 16:44
27 lines
1501 bytes
Joe Buck wrote:
> 
> You can, of course, call the C realloc().

But then crash? My understanding is that mixture of alloc/free and friends 
with new/delete is not guaranteed to be valid and therefore is discouraged. 
Not true?

If true, then realloc'ing a new'ed object ain't kosher, and there goes the 
hope for specializing STL to implement realloc efficiently, i.e. w/o copy and 
delete.

-- 

Regards,

Kerry Kimbrough 

...................................................
Home: kk@onr.com           Work: kerry@cae-plus.com

[ To submit articles: Try just posting with your newsreader.
		      If that fails, use mailto:std-c++@ncar.ucar.edu
  FAQ:    http://reality.sgi.com/employees/austern_mti/std-c++/faq.html
  Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]
Technical Details
Message-ID: <31301BFE.450A@onr.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <4g903m$7g8@mari.onr.com> <4gl2ad$lqi@hermes.synopsys.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: Kerry Kimbrough <kk@onr.com>
Newsgroups: comp.std.c++
Subject: Re: The realloc question: rationale?
Date: 25 Feb 1996 16:44:48 GMT
Organization: CAE Plus Inc.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <31301BFE.450A@onr.com>
References: <4g903m$7g8@mari.onr.com> <4gl2ad$lqi@hermes.synopsys.com>
NNTP-Posting-Host: taumet.eng.sun.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nntp-Posting-Host: onramp2-11.onr.com
X-Mailer: Mozilla 2.0 (Win16; I)
Content-Length: 529
Originator: clamage@taumet