delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/11/04:12:10

X-Apparently-From: <amitvikas AT yahoo DOT com>
Message-ID: <000801c01bc8$23837200$0301a8c0@cyberzone_lb0.czlbroad>
From: "vikas" <amitvikas AT yahoo DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: strdup() with delete[]
Date: Mon, 11 Sep 2000 13:43:11 +0530
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

>SomeClass* x = new SomeClass [n];
>..
>free (x);


perfect!

It did not come to my mind.
Using free will not execute the *any* C++ destructors/opeators which is
fatal....
That is the major difference.

Thank you very much!

vikas



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019