>
> Delphi will compile this (like FPC does), but it will fail at runtime.
Trust me here, I did the mistake a few times myself when I thought about
too many other things.
>
> Regards,
> Sven
>

Yes and this is just sad.
Is there a reasonable case for not disallowing call of constructor as
method outside constructors (of the class itself)?

Best regards,
Flávio
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to