hap.random: a new random number library for D

Dicebot via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Jul 13 08:34:29 PDT 2014


On Sunday, 13 July 2014 at 15:31:51 UTC, bearophile wrote:
> Joseph Rushton Wakeling:
>
>> Anyway, here's my thinking behind the opCall idea.  One of the 
>> major shifts of the move to classes is that, suddenly, all of 
>> these entities have to be explicitly allocated.
>
> So creating a random number generator can't be @nogc?
>
> Bye,
> bearophile

std.typecons.scoped _should_ still work - I actually suggest 
adding unit tests for this as it is quite an important use case.


More information about the Digitalmars-d-announce mailing list