[fpc-pascal] Use of abstract classes

Michael Fuchs freepascal at ypa-software.de
Tue Jan 8 13:33:24 CET 2013

Am 08.01.2013 13:29, schrieb Paul Ishenin:
> Abstract class feature is implemented the same way as it is done in
> delphi. In delphi it does not raise any error, so it works in FPC. The
> only limitation is that you can't both set sealed and abstract for the
> same class.
> Maybe later delphi will come with some extra checks for abstract classes
> and then FPC will follow.

Hm, and how about a pioneer solution?

For example a compiler error in {$MODE ObjFpc} and the actual behaviour 
in {$MODE Delphi}. That would not break compatibility, but gets a nice 
feature for FPC.


More information about the fpc-pascal mailing list