[fpc-devel] Interface delegation fix: backport to FPC 2.4.2 ...?
Michael Van Canneyt
michael at freepascal.org
Wed May 19 23:29:22 CEST 2010
On Wed, 19 May 2010, Marco van de Voort wrote:
> While that solves at least the worst compatibility issues. I still think it
> is a weak and redundant attempt.
> If the current situation is so horribly dire that you can't really do
> without it, such a bandaid is not enough.
> IMHO this is some not terribly thought through bandaid to fix some accute
> problem, and that sets a bad precedent.
Aha, but you are very wrong there.
The germs of this particular idea have been discussed 10 years ago,
when fpGUI was first designed, with Sebastian Guenther, when Lazarus
didn't even exist yet. I mentioned this to Joost and Graeme.
It is only now, after having worked on it in tiOPF and gaining the
necessary experience and - equally important - having some compiler
bugs fixed, that I think it becomes feasible to make an implementation
a) Is universally usable.
b) has low-level impact on existing code.
But I can see we are getting nowhere like this.
I do not consider breaking down other people's proposals
without offering a viable alternatives as a constructive
So - let's try another approach which may prove more constructive:
What are your proposals to get some kind of observer pattern
implemented so it can be applied consequently throughout the
classes of the FCL and LCL, without duplicating all code or
subclassing all existing classes ?
I am not interested in the actual implementation of the observer
pattern, just the means by which you think we can 'inject' one.
Please don't bother questioning the need/desirability of
this feature, consider it a given.
More information about the fpc-devel