[Lazarus] Difference between FreeThenNil and FreeAndNil
Alexander Klenin
klenin at gmail.com
Wed Apr 27 11:54:42 CEST 2011
On Wed, Apr 27, 2011 at 19:19, Jürgen Hestermann
<juergen.hestermann at gmx.de> wrote:
> I also don't understand why it is needed to manually free and
> set nil an object pointer if a destructor for the object exists
> which should do all this. This is like writing another destructor
> and makes object oriented programming (even more) useless.
No, the destructor can not change the object pointer.
That is the whole point.
--
Alexander S. Klenin
More information about the Lazarus
mailing list