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

Michael Van Canneyt michael at freepascal.org
Tue Nov 27 17:19:57 CET 2012



On Tue, 27 Nov 2012, luiz americo pereira camara wrote:

> 2012/11/13 Marco van de Voort <marcov at stack.nl>:
>>
>> Hello,
>>
>> We have placed the first release-candidate of the Free Pascal Compiler
>> version 2.6.2 on our ftp-servers.
>
> [..]
>
>
>>   * Support for observer pattern added to fcl-base (and base classes in RTL)
>
> Hi, i requested a change to observer interface with some
> considerations in http://bugs.freepascal.org/view.php?id=23394

It will not happen.

If you want to pass around interfaces safely, then you need to implement them as
descendents of IUnknown to maintain reference counts. They are implemented as CORBA 
interfaces exactly to avoid the overhead of IUnknown.

The consequence is that you must pass around the objects themselves.

Michael.



More information about the fpc-devel mailing list