This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: operator delete[]
- To: Nathan Sidwell <nathan at acm dot org>
- Subject: Re: C++ PATCH: operator delete[]
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 30 Jan 2000 22:54:42 -0200
- Cc: gcc-patches at gcc dot gnu dot org, James Kanze <f981500 at FFZJ0LX0 dot bank dot dresdner dot net>
- References: <3891A0B6.1C1BC584@acm.org>
On Jan 28, 2000, Nathan Sidwell <nathan@acm.org> wrote:
> Remember a user can replace operator new and operator delete. As
> operator new[] calls operator new, we must be symmetric.
Just a nit: the Standard says that if ptr is NULL, it does nothing. I
think this implies it should test ptr itself, even though the
non-array delete must also do so. Opinions?
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them