[Issue 16073] New: Ranges without opDollar not supported
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed May 25 07:37:24 PDT 2016
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 at puremagic.com
Reporter: qznc at 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.
--
More information about the Digitalmars-d-bugs
mailing list