https://issues.dlang.org/show_bug.cgi?id=20238
Andrei Alexandrescu <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #3 from Andrei Alexandrescu <[email protected]> --- In the notation ref elem => elem.x = 1 it is unclear whether `ref` refers to the return value of the lambda or the parameter. These do work: (ref elem) => elem.x = 1 ref (elem) => elem.x = 1 (The second would be rejected because it returns a reference to a local.) I'll close this, please reopen if appropriate. --
