[Issue 10899] std.random.Random default RNG type should be customizable at compile-time
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 2 17:06:16 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=10899
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dlang-bugzilla at thecybershad
| |ow.net
Resolution|--- |WONTFIX
--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Hmm, I don't think this is going to be implemented, because...
- Historically the BDFLs have been opposed by compiler switches which change
program behaviour.
- Changing the RNG globally may break existing code which used Random with a
fixed seed.
- As you've mentioned,
(In reply to Joseph Rushton Wakeling from comment #0)
> Caveats: Could a build-local customization of Random have implications for
> linking? I guess redefining the alias itself is not a problem but there
> could also be problems with clashes in the namespace for rndGen.
Random is an alias, so any symbols which have Random in their signature will
have different mangling (and fully-resolved type) depending on the compile-time
Random version selected.
- This bug is close to 4 years old with no replies, so I doubt someone is going
to start working on this now.
--
More information about the Digitalmars-d-bugs
mailing list