[fpc-devel] Language extension: absolute for classes
Michael Van Canneyt
michael at freepascal.org
Sun Oct 1 22:49:23 CEST 2006
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 ?
You don't know what descendent classes can be created, after all.
Michael.
More information about the fpc-devel
mailing list