[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 9 14:32:26 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=9493



--- Comment #8 from monkeyworks12 at hotmail.com 2014-02-09 14:32:22 PST ---
(In reply to comment #7)
> assert(commonPrefix([32, 32, 30], "  x") == "  ");
> assert(equal([32], " "));
> assert([32].filter!(x => x != ' ').empty);

This is bad and we should all feel bad that this C anachronism still persists
in any language. I've never liked the fact that characters are really just
numbers. Anyway, go ahead and close it.

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


More information about the Digitalmars-d-bugs mailing list