[fpc-pascal] Implementing an interface force me to add _AddRef, _Release

Zaher Dirkey parmaja at gmail.com
Fri Apr 16 09:58:19 CEST 2010


On Thu, Apr 15, 2010 at 7:58 PM, Marc Weustink <marc at dommelstein.net> wrote:
> Zaher Dirkey wrote:
>>
>> On Thu, Apr 15, 2010 at 11:09 AM, Michael Van Canneyt
>> <michael at freepascal.org> wrote:
>>>
>>> {$INTERFACES CORBA}
>>
>> {$INTERFACES CORBA}
>>
>> It is resolved my problem, Is there any limit to use it (except it is
>> not work in Delphi)?
>
> You cannot use casts like
> var
>  a: IMyObject;
>  b: IMyOtherObject;
> begin
>  b := a as IMyOtherObject;
>
> or functions like supports() (which uses queryinterface)

Can we have in the future something like IMyObject =
interface(IObject) instead of use {$INTERFACES CORBA}

-- 
Zaher Dirkey



More information about the fpc-pascal mailing list