[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: free instead of destructor
From:       Marcos Dione <mdione () hal ! famaf ! unc ! edu ! ar>
Date:       2000-02-07 18:16:36
[Download RAW message or body]



On Mon, 7 Feb 2000, Malte Starostik wrote:

> I don't see what it'd be good for. In C++ you can just do delete myobj as
> equivalent to if (myobj) delete myobj. I think Botland only introduces this
> TObject.Free thing because there is no such "intelligent" delete operator.
> -Malte

	inteligent? delete ain't "inteligent". try to delete a
non-allocated object and you'll finish with a SIGSEGV. free would be
"inteligent", but as someone said, it may be impossible (or cumbersome
or just stupid) to implementate it... forget it, please.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic