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

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Thu Nov 29 10:44:18 CET 2012



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. But in the case he uses CORBA
interfaces: What routine needs to be implemented to do this for Corba interfaces ?

Michael.



More information about the fpc-devel mailing list