Hello,  FPC developers' list.

I think that ChangeName should stay in the TComponent class. It is the only way to change a component name without validation. Even if it is not used by Lazarus it is probably used by some third-party components. For example report generators can use them to implement own name validation and change for the designer objects (if they are components).

I suggest to make this method either virtual or dynamic (dynamic is better when a method will be seldomly/never overrided) and continue to use it. This way we can also monitor a name change inside TComponent descendants.

--
Best regards,
Paul Ishenin.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to