This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: new vs malloc, was BUG - Cygwin to GNU CC compatibility


----- Original Message -----
From: "Ross Smith" <rosss@pharos.co.nz>
To: "'Chan Kar Heng'" <karheng@softhome.net>; <cygwin@cygwin.com>
Sent: Tuesday, August 06, 2002 1:49 PM
Subject: RE: new vs malloc, was BUG - Cygwin to GNU CC compatibility
>
> No user code should ever use "delete"; it should only appear in the
> implementation of a container or smart pointer.

What? I must misunderstand what is meant, since user code must always use
"delete" for each "new", unless the documentation of a function clearly
states that it is the function's responsibility to "delete".



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]