[fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed Nov 28 09:47:27 CET 2012



On Wed, 28 Nov 2012, Vincent Snijders wrote:

> 2012/11/28 <michael.vancanneyt at wisa.be>
>> It IS a big change. There is production code out there that uses this,
>> and this is an incompatible change.
>
> Then Luiz is right on time with his proposal, with the frist release
> candidate of the first release that contains this feature. If
> production code already uses it, then the production code writers must
> have taken a risk for change knowing that this was a not yet released
> feature.

It's rather the opposite. This code was developed and has been in use since
years. I simply integrated the code in the classes unit, making the
production code simpler.

Apart from that, I don't see the point in changing it to an interface.

At some point, there must be an object, and at some point, there is a
typecast, this is unavoidable. Nothing is gained by changing the API 
to use an interface.

I can see the speed argument when notifying, but that can be changed by 
an internal change, without API changes.

Michael.



More information about the fpc-devel mailing list