[Issue 6490] countUntil will take a non-range for its second argument
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Aug 14 03:46:36 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6490
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-14 03:46:35 PDT ---
Okay. I misunderstood countUntil. Its signature is
sizediff_t countUntil(alias pred = "a == b", R1, R2)(R1 haystack, R2 needle)
if (is(typeof(startsWith!pred(haystack, needle))))
Of course, I didn't see the template constraint in the documentation, and given
the type names, I assumed that needle had to be a range. My mistake. There's no
problem with this code.
--
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