Eliminate redundancy of dup/idup
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sun Sep 9 12:58:38 PDT 2012
On 9/9/12, Adam D. Ruppe <destructionator at gmail.com> wrote:
> One option I've heard that might be OK is to make auto strip off
> the top level immutable:
>
> immutable(char[]) a;
> auto b = a; // b is immutable(char)[]
Sounds like something that could bite you in generic code if you
expect 'auto' to do nothing more than type inference. is() expressions
might start failing, etc..
More information about the Digitalmars-d
mailing list