[fpc-devel] Suggestion: reference counted objects
    Sven Barth 
    pascaldragon at googlemail.com
       
    Tue Sep 23 07:49:07 CEST 2014
    
    
  
On 22.09.2014 23:37, Boian Mitov wrote:
> Actually, although on first glance different, anonymous methods are done
> as reference counted objects in Delphi, (well technically trough
> interfaces.), so since the anonymous method storage by definition has to
> be kept alive trough reference counting or similar approach, the topic
> is not that detached from this one.
They are however only accessed through the implicitely generated 
interface and not through some object instance and thus the class ARC is 
not involved in any way, only the reference counting of interfaces and 
that already works. ;) Afterall anonymous functions were introduced 
before the class ARC :)
Regards,
Sven
    
    
More information about the fpc-devel
mailing list