[fpc-devel] Interface delegation fix: backport to FPC 2.4.2 ...?
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu May 20 08:52:50 CEST 2010
Matt Emson het geskryf:
> Patterns are faddy - you are not going to please everyone.
Please explain and give examples where Observer will not be useful. Also, I
do not know what "faddy" means.
> I'd rather see a mechanism for injecting first class extensions to
> existing classes.
* Interfaces don't work because you need to subclass them to get the extra
functionality. This is totally useless for things like TCombobox.Items or
TMemo.Lines (like Michael explained) because such components uses TStrings
directly.
* Class Helpers like in Delphi. Also useless because you can only extend
them with one helper class at a time. So you want ComboBox.Items.IsEmpty so
you create a help class do do that. Now that helper class blocks any other
functionality from being added. Class Helpers were introduced in Delphi 8 -
the worse release of Delphi *ever*, and with such features we can clearly
see why.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list