int[2] a; immutable(int)[2] b = a.idup; Am 01.10.2011 13:00, schrieb Peter Alexander: > int[2] a; > immutable(int)[2] b = a; > > I get "Error: cannot implicitly convert expression (a) of type int[2u] > to immutable(int)[]" > > Is there are reason for disallowing this, or is it a bug?
- T[n] a; immutable(T)[n] b = a; // error Peter Alexander
- Re: T[n] a; immutable(T)[n] b = a; // error bearophile
- Re: T[n] a; immutable(T)[n] b = a; // error mta`chrono
- Re: T[n] a; immutable(T)[n] b = a; // error Steven Schveighoffer
- Re: T[n] a; immutable(T)[n] b = a; // er... Peter Alexander