08.01.13, 19:48, Michael Fuchs пишет:

I thougt this would cause a compiler error, while creating a abstract
class. Surprisingly it compiles, even without a warning.

Do I have to use any compiler switches or is there no sense in using the
abstract keyword for a class?

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.

Best regards,
Paul Ishenin
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to