Implement @unowned(unsafe).

This was part of the original weak design that
there was never any particular reason to rush the
implementation for.  It's convenient to do this now
so that we can use it to implement Unmanaged<T> for
importing CF types.

Swift SVN r16693
This commit is contained in:
John McCall
2014-04-23 08:51:23 +00:00
parent 8bd79535a1
commit b38a63950d
44 changed files with 432 additions and 41 deletions

View File

@@ -184,7 +184,8 @@ using AssociativityField = BCFixed<2>;
enum Ownership : uint8_t {
Strong = 0,
Weak,
Unowned
Unowned,
Unmanaged,
};
using OwnershipField = BCFixed<2>;