[Lazarus] Difference between FreeThenNil and FreeAndNil

J├╝rgen Hestermann juergen.hestermann at gmx.de
Wed Apr 27 10:19:25 CEST 2011

michael.vancanneyt at wisa.be schrieb:
> I don't think you should provide for this. This is encouraging people to
> write bad code. They should get an error, and correct their code.

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.

More information about the Lazarus mailing list