Re: generic cast(unshared) ?
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.
generic cast(unshared) ?
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.
Re: generic cast(unshared) ?
Note: should work with any types, eg: shared(T[])* = T[]* etc... On Sun, Jun 28, 2015 at 4:42 PM, Timothee Cour thelastmamm...@gmail.com 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.