[fpc-pascal] What's wrong with this simple test program

Flávio Etrusco flavio.etrusco at gmail.com
Sat Dec 20 05:36:13 CET 2014

> 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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141220/2b32236c/attachment.html>

More information about the fpc-pascal mailing list