generic cast(unshared) ?

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 28 17:57:53 PDT 2015


On Sunday, 28 June 2015 at 23:42:47 UTC, Timothee Cour wrote:
> How would I cast away shared for a given expression?
> I can write it for a specific type but I'd like to have a 
> generic way to do
> so.
> Also, Unqual doesn't help here.

Normally, "cast()" removes "shared" from a type. BUT, sometimes 
it doesn't work for me, and forces me to type the type of 
variable again.


More information about the Digitalmars-d-learn mailing list