[fpc-pascal] Use of abstract classes
Michael Fuchs
freepascal at ypa-software.de
Tue Jan 8 13:21:25 CET 2013
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
More information about the fpc-pascal
mailing list