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.

Michael.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to