https://issues.dlang.org/show_bug.cgi?id=15582
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from [email protected] --- (In reply to Marc Schütz from comment #0) > I believe this should work: > > struct S { > int[10] data; > auto opSlice() { return data[]; } > } > > void main() { > S s; > s[] = 10; // Error: s[] is not an lvalue > s[][] = 10; // works > } I don't aggree, it's like if you say that s.opSlice() = 10; should work. --
