[fpc-devel] Language extension: absolute for classes

Daniël Mantione daniel.mantione at freepascal.org
Sun Oct 1 22:48:08 CEST 2006



Op Sun, 1 Oct 2006, schreef Michael Van Canneyt:

> 
> 
> On Sun, 1 Oct 2006, Micha Nelissen wrote:
> 
> > Michael Van Canneyt wrote:
> > > If you do it for fields of class type only, then I think this is OK.
> > > Declare the field as virtual, and require it to be 'overridden' in the
> > > descendent class.
> > 
> > Why is there a need to declare fields virtual ?
> 
> Because you want to override it. It's a flag for the compiler that 
> this is allowed. Otherwise you could override just about any field
> in a descendent class, which is not what you want, I think ?

Actually I don't see the need. A descendent class can already be used in 
any situation where the parent is used, so there is no need to explicitely 
specify this.

Daniël


More information about the fpc-devel mailing list