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

Ewald ewald at yellowcouch.org
Wed Nov 28 19:28:34 CET 2012


Once upon a time, on 11/28/2012 03:40 PM to be precise, luiz americo
pereira camara said:
>>> So, i keep my points. Even because is not a big change with easy
>>> implementation that will fix the above issues.
>>
>> It IS a big change. There is production code out there that uses this,
>> and this is an incompatible change.
> 1) The change in code can be tedious but is simple. from Attach(MyObj)
> to Attach(MyObj as IFPObserver)

To fix incompatibility wouldn't a simple operator overload do the trick?

    Operator := (a: TObject): IFPObserver;

or something like that?

-- 
Ewald

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20121128/1c78e5a4/attachment.html>


More information about the fpc-devel mailing list