[fpc-devel] Interface delegation fix: backport to FPC 2.4.2 ...?

Michael Van Canneyt michael at freepascal.org
Thu May 20 10:09:17 CEST 2010

On Thu, 20 May 2010, Marco van de Voort wrote:

> In our previous episode, Michael Van Canneyt said:
>>>> Observable and Observer go hand in hand. We're talking about both.
>>>> Specifically, I want to add observable to TPersistent.
>>> People having object frameworks based on that class will really thank you
>>> for slowing their systems.
>> Why would it slow down?
>> I'm not adding any calls to it. Just a call and a property which - when used in a
>> descendent - may instantiate an auxiliary object. By default, nothing is
>> called, and therefor there is no speed impact.
> How do you detect in an observable that the state changed ? Usually this is
> done by setting a flag at any write operation to the object.

Of course, but this is up to the developer. I offer the mechanism, the
developer to use it.


More information about the fpc-devel mailing list