[Swift-devel] swift write once array/struct

Ketan Maheshwari ketan at mcs.anl.gov
Fri Mar 20 23:33:51 CDT 2015


Hi,

So, in the meeting today, I was curious about wether the Swift write once
array/struct property is enforced via some external function or is it
intrinsic to the array/struct.

In other words, is  the array/struct implemented in such a way that it will
automatically not allow anything to write once its i-th item has been
written or some external entity keeps track of this property and gets
triggered every time a write happens.

I thought with intrinsic property, write operations will be atomic and free
of deadlocks as opposed to externally tracked/enforced property.

--
Ketan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20150320/f261c381/attachment.html>


More information about the Swift-devel mailing list