[fpc-pascal] Abstract classes ignored
Ryan Joseph
genericptr at gmail.com
Sat Apr 17 20:30:21 CEST 2021
From the documentation: "An abstract class is a class that cannot be instantiated directly. Instead, a descendent class must always be instantiated. However, for Delphi compatibility, the compiler ignores this directive."
Why does this get ignored and what does this have to do with Delphi? I personally would like for this to actually work and give a compiler error if you instantiate the abstract class.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list