[Issue 14001] Optionally @nogc std.random.randomCover

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 18 05:31:31 PST 2015


https://issues.dlang.org/show_bug.cgi?id=14001

--- Comment #1 from bearophile_hugs at eml.cc ---
In many use cases you don't need allocations, if you reserve a size_t inside
the RandomCover struct, and you use such size_t as a bit array, you can manage
the cases where the input 'r' is up to 32 or 64 items long without need of any
array buf.

--


More information about the Digitalmars-d-bugs mailing list