www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16073] New: Ranges without opDollar not supported


          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:


These should be converted into `x.length` instead and unittests should be
inserted to check that range algorithms work without opDollar.

May 25 2016