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
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel