Summary: std.string.indexOf and std.algorithm.indexOf return
                    different things for narrow strings
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrei Alexandrescu <> 2010-11-11 
10:56:43 PST ---
std.algorithm.indexOf returns logical position because it uses the forward
range interface, and std.string.indexOf returns the physical position.

This is potentially confusing (the semantics of a program depends on its

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to