[Lazarus] Codetools and virtual abstract methods (just nitpicking)

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Jun 12 14:27:16 CEST 2011


Bart schrieb:

> Now press Shift+Ctrl+C and voila codetools insert this code:
> 
> procedure TX.SomeProc;
> begin
>   inherited SomeProc;
> end;
> 
> Which will (of course) not compile:
> "test.lpr(32,21) Error: Abstract methods can't be called directly"
> 
> My fault, or a minor minor minor annoyance?

It's liveable, I'd say. At least the compiler warns you, when you really 
forget to add meaningful code.

It's still better than other codetools behaviour, which don't recognize 
methods or fields in grandparents.

DoDi





More information about the Lazarus mailing list