[Issue 9339] std.random.uniform!Enum should return random enum member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 12 17:33:10 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9339
--- Comment #20 from bearophile_hugs at eml.cc 2013-02-12 17:33:09 PST ---
One test case to try:
import std.bigint, std.random;
enum Foo : BigInt {
zero = BigInt(0),
one = BigInt(1)
}
void main() {
auto x = uniform!Foo();
}
--
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