[fpc-pascal] Interface, _AddRef, _Release, etc.
    Zaher Dirkey 
    parmaja at gmail.com
       
    Thu Sep 15 12:57:49 CEST 2011
    
    
  
On Thu, Sep 15, 2011 at 12:27 PM, Graeme Geldenhuys <graemeg.lists at gmail.com
> wrote:
> On 14/09/2011 23:17, Marcos Douglas wrote:
> >
> > procedure Run;
> > var
> >   f: TFoo;  // << type is class, not interface
> >   o: TObj;
> > begin
> >   f := TFoo.Create;
>
> This is just wrong.
>
>
1 - If i use the class not Interface is the recount used?
2 - Is that compatible with Delphi?
In 1 i meant, as i expected if i use f:IFoo the refcount counted, but if i
use f:TFoo methods of reference not triggered?
Thanks
Zaher Dirkey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110915/dde4748c/attachment.html>
    
    
More information about the fpc-pascal
mailing list