[Issue 12086] std.algorithm.remove + range of indices produces wrong results

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jun 13 08:44:44 PDT 2014


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

--- Comment #2 from safety0ff.bugz <safety0ff.bugz at gmail.com> ---
(In reply to safety0ff.bugz from comment #1)
> I think this is a combination of a documentation bug and a remove bug:
> The documentation bug is that it should accept any range of indices with
> length 1 or 2.
> Currently it is only documented that tuples of length 2 should be accepted,
> but I don't see why tuples should be special.

Reflecting about this I realised that it is error prone, so tuples should be
the only way to specify a range of indices.
I think to fix this a relatively short deprecation cycle should be introduced
to avoid breaking code.

--


More information about the Digitalmars-d-bugs mailing list