https://issues.dlang.org/show_bug.cgi?id=7753
Martin Nowak <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #6 from Martin Nowak <[email protected]> --- Igor Stepanov suggested [¹] an opIndex extension. ref Foo opIndex(bool lvalue)(size_t idx) Where the compiler would call opIndex!true when an lvalue is required and opIndex!false when an rvalue suffices. [¹]: http://forum.dlang.org/post/[email protected] --
