[fpc-pascal] Questions About Constructors
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Mar 30 09:24:16 CEST 2017
On Thu, 30 Mar 2017 03:47:59 -0300
African Wild Dog <paintedlycaon at gmail.com> wrote:
> Hello,
>
> 1 - What happens if my constructor raise an exception? Is my destructor
> automatically called?
Yes.
> 2 - Are the class fields automatically initialized to Default(T) just like
> in Delphi?
They are all initialized. I'm not sure if Default(T) is always the same
value. I guess yes.
Mattias
More information about the fpc-pascal
mailing list