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
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel