[Issue 5508] Update startsWith to take a range of ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 8 09:51:57 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=5508


Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID


--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> 2013-01-08 09:51:54 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > Not sure I get the semantics. Currently the assertion fails because the first
> > array does not start with any of the other arrays. Please advise.
> 
> The array starts with \r\n which is the second element in the second array.

I understand. But that conflicts with the current semantics, which say that for
x and y of type T[], x.startsWith(y) is true iff y is a prefix of x.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list