On Wednesday, 13 July 2016 at 21:06:28 UTC, kinke wrote:
On Monday, 27 June 2016 at 02:38:22 UTC, Timon Gehr wrote:
The point is that the slice expression itself does or does not
see the updates based on whether I wrap base in a lambda or
not.
I don't really see a necessity for the lambda to return the
same kind (lvalue/rvalue) of value as the expression directly.
Oh, that's actually
https://issues.dlang.org/show_bug.cgi?id=16271.
So lambda wrapping isn't the issue here. It's just that both ways
of dealing with the base are possible and arguably plausible. Is
the current DMD way (base treated as rvalue) the one to be
followed or has just nobody given this a deeper thought yet?