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

List:       kde-devel
Subject:    Re: free instead of destructor
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       2000-02-07 8:45:07
[Download RAW message or body]

On Mon, 7 Feb 2000, Marcos Dione wrote:

> 
> 	programming under several laguages sometimes let you have an
> idea... and the mine (actually, a Borland's one) is: why don't have
> something like the free method under Delphi? that method, declared in
> TObject (wich here would be QObject?), destroys the object if and only if
> the object is allocated (is not a null pointer). could this be done under
> c++/KDE? I think that would help to make things easier... 

I don't get it.

If the object is a null pointer, obj->free() will still segfault.

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
The stone age didn't end for a lack of stone" Firoz Rasul

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

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