[swift-users] Checking whether an object is uniquely referenced, using a weak reference to it
Dave Abrahams
dabrahams at apple.com
Tue Jun 28 12:21:42 CDT 2016
on Tue Jun 28 2016, Jordan Rose <jordan_rose-AT-apple.com> wrote:
>> On Jun 27, 2016, at 18:52, Tim Vermeulen <tvermeulen at me.com> wrote:
>>
>> Thanks for your reply. It didn’t clear up everything, though. The
>> official documentation says "Weak references do not affect the
>> result of this function.”, which suggests that weak (and unowned)
>> references intentionally aren’t counted. The docs only mention the
>> implementation of copy-on-write behaviour as a use case (which also
>> happens to be what I’m using it for).
>
> I would expect that weak references are important to count for COW,
> since you can observe changes through them. Dave?
I can try to address this thread, but not immediately I'm afraid. I'm
just swamped at the moment.
Sorry,
--
Dave
More information about the swift-users
mailing list