[fpc-pascal] Class constructor called unconditionally

silvioprog silvioprog at gmail.com
Thu Mar 31 15:51:40 CEST 2016


On Thu, Mar 31, 2016 at 10:49 AM, Sven Barth <pascaldragon at googlemail.com>
wrote:

> Am 31.03.2016 15:33 schrieb "silvioprog" <silvioprog at gmail.com>:
> > After read this explanations, is there some compiler option to make FPC
> with this same Delphi behaviour? I'm using MODE DELPHI.
>
> No, there is not. Currently class constructors (and destructors) are
> called always.
>
> Regards,
> Sven
>
OK. So I can't use class constructor in FPC.

Thank you!

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


More information about the fpc-pascal mailing list