[fpc-devel] Tests of observer feature [was: Considerations about observer]

luiz americo pereira camara luizmed at oi.com.br
Thu Nov 29 12:04:28 CET 2012


2012/11/29  <michael.vancanneyt at wisa.be>:
>
>
> On Thu, 29 Nov 2012, Sven Barth wrote:
>
>> Am 29.11.2012 03:59, schrieb luiz americo pereira camara:
>>>
>>> As is today, if you have a reference to a IFPObserver is not possible
>>> to use it to attach to, e.g., child objects. This occurs because AFAIK
>>> you can't get a TObject from a interface reference.
>>
>>
>> At least for COM interfaces "as" and "is" with a class type on the right
>> side is supported. The corresponding code for Corba interfaces is not
>> implemented (yet). This feature exists at least since 2.6.0.
>
>
> Well. I did not know of this feature. I should document it :-)
>
> If so, that solves Luiz' problem, since it would allow him to retrieve the
> object
> to use as an observer.
>
> I'm assuming that Luiz uses COM interfaces.

Again: in this case, i don't use COM interfaces nor do i propose to use

Luiz



More information about the fpc-devel mailing list