[Issue 14040] Doesn't use assignment in slice

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 24 16:05:34 PST 2015


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

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #1 from bearophile_hugs at eml.cc ---
Code like this is ugly, if I see code like this I refactor it immediately:

values[offset .. offset += 2]


Into two lines like:

values[offset .. offset + 2]
offset += 2;

--


More information about the Digitalmars-d-bugs mailing list