[fpc-pascal] Could someone explain me which the correct triggering of the BeforeDestruction method?

silvioprog silvioprog at gmail.com
Mon Sep 5 17:56:15 CEST 2016


On Sun, Sep 4, 2016 at 5:23 PM, Luiz Americo Pereira Camara <
luizamericop at gmail.com> wrote:

> Seems that Delphi considers that the object is already created at the time
> AfterConstruction is called, so it understands that when it gets into
> AfterConstruction is sucessfully created. Semantically makes sense.
>
> The counter proof is see if AfterConstruction is called when a exception
> occurs in constructor
>
And I'm even still not sure about BeforeDestruction triggering, FPC
triggers 132, Delphi 1342. :-/

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160905/cb2c7fa2/attachment.html>


More information about the fpc-pascal mailing list