[fpc-devel] Proof of Concept ARC implementation

Michael Schnell mschnell at lumino.de
Wed Oct 29 15:27:21 CET 2014


On 10/29/2014 01:58 PM, Sven Barth wrote:
>
> - no change in reference count when assigning a refcounted object 
> variable to it
> - no change in reference count when assigning it to a refcounted 
> object variable
> - no change in reference conut when assigning between "weak" variables
Thanks for the explanation.
>
> Delphi introduced weak variable ...

Continuing their abusing of well defined keyword from other languages.

In C weak means
  - for externals: if the linker does not find the reference it writes a 
NULL instzead of aborting the link process with an error message.
  - for globals: if the linker finds another global of this name it does 
not use the weak ones. It aborts when it finds duplicates that are both 
non-weak.

not similar at all :-(

-Michael




More information about the fpc-devel mailing list