[fpc-devel] Proof of Concept ARC implementation

Sven Barth pascaldragon at googlemail.com
Thu Oct 30 10:25:54 CET 2014


On 30.10.2014 00:28, ListMember wrote:
> On 2014-10-29 14:58, Sven Barth wrote:
>> Delphi introduced weak variable to break up cycling, I implemented
>> them similary in my branch (not using the attribute syntax though) and
>> in Florian's suggestions all object instance variables in legacy code
>> would be "weak" for backwards compatibility.
>
> Given that legacy code will be infinitely more in size than new code (at
> least in the foreseable future), wouldn't be wiser to consider everthing
> 'weak' (i.e. default) and use 'strong' (or something similar) to denote
> those variables of the new object type?

Variables of non-reference counted object types are always weak anyway. 
The "weak" keyword applies only to variables of reference counted object 
types.

Regards,
Sven




More information about the fpc-devel mailing list