>From "C++ Programing Language : Third Edition" - Stroustrup
Section 6.2.6.1 Arrays
...
The "plain" operator delete is used to delete individual objects;
delete[] is used to delete arrays.
...
traff
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Schuller
> Sent: Friday, February 12, 1999 4:37 PM
> To: Prasanna Bose
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: C++ Destructor Question
>
>
> > Anything that is allocated with a
> > new classtype[] should be deleted with a delete[].
>
> Does anyone know if the C++ language specification actually
> states that that is
> true?
>
> I've read in books etc that delete[] is supposed to be used, but I don't
> think I've EVER seen it used in the real world. I never use
> delete[] myself, and
> I have no problems with memory leaks.r
>
> / Peter Schuller
>
> Technical support guy: Microsoft support, how may I help you?
> Newbie: Well, I am having problems with my computer.
> Tech guy: So what's the problem?
> Newbie: Windows keeps crashing on me.
> [3 second pause]
> Tech guy: And?
>
> ---
> PGP userID: 0x5584BD98 or 'Peter Schuller <[EMAIL PROTECTED]>'
> E-Mail: [EMAIL PROTECTED]
> Web: http://hem.passagen.se/petersch
>
>
>