[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: weak redefinition
From: |
Wolfgang Lux |
Subject: |
Re: weak redefinition |
Date: |
Tue, 14 Apr 2015 17:41:13 +0200 |
> Am 14.04.2015 um 17:32 schrieb David Chisnall <theraven@sucs.org>:
>
> On 14 Apr 2015, at 15:39, Riccardo Mottola <riccardo.mottola@libero.it> wrote:
>>
>> do you have an authoritative reference to that? I wound "weak" and not
>> "__weak". A language spec or a doc from Apple would be excellent, so I can
>> argument to the NetBSD guys.
>
> See:
>
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/EncapsulatingData/EncapsulatingData.html
>
> weak is a context-dependent keyword that is only valid in property
> declarations. __weak (along with __strong / __unsafe_unretained) is a
> storage qualifier that is valid on all declarations.
And FWIW, the __weak and __strong qualifiers have been present at least since
Apple introduced garbage collection for Objective-C in Mac OS 10.5, i.e., since
2007.
Wolfgang