Immutable and unique in C#

Sönke Ludwig sludwig at outerproduct.org
Tue Nov 13 03:20:38 PST 2012


Am 13.11.2012 12:08, schrieb Walter Bright:
> 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.
> 

Ditto


More information about the Digitalmars-d mailing list