Mir Random [WIP]

Ilya Yaroshenko via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 23 11:40:47 PST 2016


On Wednesday, 23 November 2016 at 19:16:29 UTC, Andrei 
Alexandrescu wrote:
>
> A tip for the range adaptor: have it allocate and own the 
> generator internally. That way it's easy to make it reference 
> counted economically.

Current adaptor should be used in a function scope. (Would be 
great to have a DIP for that kind of semantic check). An RC 
adaptor can be added too. First we need to find a real world use 
case where we need to store a random range outside of a function. 
-- Ilya


More information about the Digitalmars-d mailing list