[Issue 7067] std.random.RandomSample and RandomCover are poorly designed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 15 01:00:15 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7067
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jmdavisProg at gmx.com
--- Comment #9 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-06-15 01:02:22 PDT ---
We can make the random number generator ranges reference types without breaking
code simply by creating inner structs for them which hold their member
variables and sit on the heap. The only code which would break because of this
would be code which relied on them being value types, which (as discussed) is
almost certainly a bug.
--
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