[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:35:48 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=9493
Peter Alexander <peter.alexander.au at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #9 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-09 14:35:45 PST ---
(In reply to comment #8)
> (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.
Maybe in D3? :-)
--
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