🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #13

Re: delete [n] ptr warning

#13
From: Troy Cauble
Date: Thu, 29 Oct 1992 00:25
21 lines
1108 bytes
Joe Buck (jbuck@forney.berkeley.edu) wrote:
:
: You must use the syntax
: 	delete [] ptr
: 
: The implementation is responsible for knowing how many objects there are.


: It's documented, but not in the Gnu documentation.  This is explained
: in any up-to-date C++ book.  If you have an old one, you'll need to get
: a new one.


Yikes!  Thanks for pointing that out.

I did check a fairly up-to-date reference manual ("The C++ Programming
Language", 2nd. Ed.).  But it just didn't sink in that there was no
longer anything *in* those brackets.

-Troy
Troy.Cauble@att.com
Technical Details
Message-ID: <1992Oct29.002507.8355@cbnewsj.cb.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbnewsj!troy
References: <1cn8b3INN7n0@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbnewsj!troy
From: troy@cbnewsj.cb.att.com (Troy Cauble)
Subject: Re: delete [n] ptr warning
Organization: AT&T Bell Laboratories, Holmdel NJ
Date: Thu, 29 Oct 1992 00:25:07 GMT
Message-ID: <1992Oct29.002507.8355@cbnewsj.cb.att.com>
X-Newsreader: TIN [version 1.1 PL6]
References: <1cn8b3INN7n0@agate.berkeley.edu>
Sender: news@cbnewsj.cb.att.com (NetNews Administrator)
Nntp-Posting-Host: stimpy.ho.att.com
Lines: 21