digitalmars.D.bugs - [Issue 16073] New: Ranges without opDollar not supported
- via Digitalmars-d-bugs (19/19) May 25 2016 https://issues.dlang.org/show_bug.cgi?id=16073
https://issues.dlang.org/show_bug.cgi?id=16073 Issue ID: 16073 Summary: Ranges without opDollar not supported Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: minor Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: qznc web.de Various algorithms in std.algorithm.searching use opDollar, although given ranges might not implement it. For example: https://github.com/dlang/phobos/blob/master/std/algorithm/searching.d#L1781 These should be converted into `x.length` instead and unittests should be inserted to check that range algorithms work without opDollar. --
May 25 2016