More tricky range semantics

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 15 17:52:45 PST 2015


On 1/15/15 4:58 PM, Joseph Rushton Wakeling via Digitalmars-d wrote:
> On 16/01/15 00:24, Andrei Alexandrescu via Digitalmars-d wrote:
>> That's right. To simplify the problem space we might decree that
>> forward (or
>> better) ranges with reference semantics are not allowed. -- Andrei
>
> That would seem to place significant restrictions on the ability to
> define effective random number generators and related functionality ... ?

Agreed. Pseudo-random generators are an interesting kind of range 
because they are forward yet do not iterate a "real" container. -- Andrei


More information about the Digitalmars-d mailing list