[Issue 16628] New: Special case std.algorithm.equal for known empty or infinite ranges
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Thu Oct 20 04:12:20 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=16628
          Issue ID: 16628
           Summary: Special case std.algorithm.equal for known empty or
                    infinite ranges
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org
* If one of the ranges has `Range.empty == true`, we can define `equal` even
when each `front` is not comparable.
* If one range is known to be infinite and the other defines `length`, return
false.
* If both are known to be infinite, cause a compile-time error.
PR pending.
--
    
    
More information about the Digitalmars-d-bugs
mailing list