Struct that destroys its original handle on copy-by-value

Joseph Rushton Wakeling via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 3 08:04:57 PDT 2015


On Monday, 3 August 2015 at 09:01:51 UTC, Dicebot wrote:
> It is now verified as safe by `return ref`.

Yes, until you pointed this out to me I'd been convinced that 
classes were the way forward for RNGs.  I think that `return ref` 
is going to be a _very_ powerful tool for facilitating 
stack-allocated RNG functionality.


More information about the Digitalmars-d-learn mailing list