https://issues.dlang.org/show_bug.cgi?id=14984

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WORKSFORME

--- Comment #5 from RazvanN <[email protected]> ---
Right now, if we modify the element of a foreach range, there is no problem
because we are operating on a copy of the original element. If we need to
modify the actual element, then we need to add ref. That stands true for the
iteration variable also. I don't see why we would deprecate any of this
behavior because it offers maximum flexibility.

--

Reply via email to