[Lazarus] Difference between FreeThenNil and FreeAndNil

Alexander Klenin klenin at gmail.com
Wed Apr 27 13:38:12 CEST 2011


On Wed, Apr 27, 2011 at 22:18,  <michael.vancanneyt at wisa.be> wrote:
>> As you can see from the linked discussion,
>> currently implemented workaround involves FreeAndNil.
>> I can imagine a similar bug which might require FreeThenNil instead.
>
> I didn't see any linked discussion in the indicated page.

If you scroll down a bit, you will see a single note, pointing to
http://lists.lazarus.freepascal.org/pipermail/lazarus/2010-April/051023.html

> If I see things in mails like like
> "This code is so complicated, I can not understand what is going on."
> Then I automatically think "Badly written code" and therefore 'error-prone'.

I agree and even I tried to refactor it -- but my work was rejected by
core developers.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list