Am 18.04.2021 um 04:34 schrieb Ryan Joseph via fpc-pascal:

On Apr 17, 2021, at 3:09 PM, Sven Barth <pascaldra...@googlemail.com> wrote:

The compiler will generate a warning in case you instantiate a class that is 
abstract or has abstract methods. You can escalate these warnings to errors if 
you need:
It's probably not practical to put that warning into all potential files but a 
warning is still probably good enough as a reminder. It's curious though why 
it's not an error by default, because if the class is abstract and you 
instantiate it and try to use it things are going to fail anyways so why does 
the compiler allow it in the first place?

As I have said: Delphi compatibility.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to