On Thu, 30 Mar 2017 03:47:59 -0300
African Wild Dog <paintedlyc...@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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to