Implicit conversion of unique objects to mutable and immutable

Timon Gehr timon.gehr at gmx.ch
Wed Jun 22 08:58:02 PDT 2011


On Wed, 22 Jun 2011 00:02:55 +0000, Ali Çehreli wrote:

> I wonder whether a UniqueRef object could be returned, which could allow
> a single casting of its data to mutable or immutable at the call site.
> Further casts could throw, but that would be a runtime solution. :-/

Further casts should return null.


Timon


More information about the Digitalmars-d-learn mailing list