Am 08.01.2013 13:06, schrieb Howard Page-Clark:
   TAbstractClass = class abstract(TObject)
>
'Casting' a class as abstract is curious syntax. What led you to think
of that? But obviously the compiler knows it.

This is no casting, it is the new abstract class syntax coming from delphi.

As soon as you add an abstract method the compiler will give a warning.

Yes, this behaviour I know. But I would prefer an error for abstract classes. I was hoping, that the class abstract keyword led to this error.

Michael
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to