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