> On Sep 12, 2016, at 11:11 AM, Quincey Morris > <[email protected]> wrote: > > My understanding is that pure Swift arrays (that is, *not* bridged NSArrays) > are stored as efficiently as C arrays.
It’s not the efficiency of storage I was concerned about; in this case it’s the COW semantics, which can involve the data backing store being moved at the whim of an opaque internal implementation. If you want just a plain raw array without that sort of behavior, I’m not sure how you would do it in Swift without resorting to UnsafePointer shenanigans. —Jens _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
