[Issue 9493] std.algorithm.canFind returns true for empty string in array of integers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 10 03:46:43 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9493
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-02-10 03:46:42 PST ---
I think that there's a good chance that it's intended behavior that looking for
an empty range with canFind always returns true. However, the fact that canFind
is accepting a _string_ as the needle when the haystack is int[] seems very
wrong.
--
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