[Lazarus] Class autocompletion and abstract methods.

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Apr 15 14:46:12 CEST 2010


On Thu, 15 Apr 2010 14:09:36 +0200
Torsten Bonde Christiansen <tc at epidata.dk> wrote:

> 
> >
> > Okay, that just me.... to many abstract methods cluttered it all and 
> > in between some methods were not properly name abstract as they should.
> >
> > Sorry for the inconvenience.
> >
> > Kind regards,
> > Torsten Bonde Christiansen.
> 
> Got another question related to this - in a descendant class in 
> redeclare (if that is the word for it) the methods naturally with the 
> keyword 'override' for all.
> 
> Then using class completion here all created implemenations 
> automatically creates the line "inherited <methodname>" which is not 
> legal Free Pascal syntax, at least it give me a compile time error.

It creates "inherited methodname(params);".

It is not legal to call abstract methods, but the class completion
does not check this yet. There is already a feature request for that.

 
> Is this not a bug then - i will assume it's not the intent of Lazarus to 
> create autocompletion code that does not compile?

Good guess.

Mattias




More information about the Lazarus mailing list