[Issue 2921] std.random.uniform doesn't work with char.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun May 3 12:41:42 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2921
------- Comment #1 from dsimcha at yahoo.com 2009-05-03 14:41 -------
Created an attachment (id=346)
--> (http://d.puremagic.com/issues/attachment.cgi?id=346&action=view)
Make uniform work with chars.
It's just a problem of uniform trying to treat characters as if they were
floating point types because isIntegral!(char) is false. Here's a patch that
just makes a new template isIntOrChar(T) and uses that instead.
--
More information about the Digitalmars-d-bugs
mailing list