Immutable and unique in C#

Walter Bright newshound2 at digitalmars.com
Tue Nov 13 03:08:50 PST 2012


I think the only way values can be extracted from Unique!T containers is by 
copying them, and those values cannot contain any non-immutable references.

A Unique!T can be implicitly cast to mutable/shared/immutable, which then grants 
direct mutable/shared/immutable access, but it won't be unique anymore.



More information about the Digitalmars-d mailing list