Transient ranges

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 05:22:25 PDT 2016


On 6/1/16 8:37 PM, Steven Schveighoffer wrote:
> On 6/1/16 8:49 AM, Joseph Rushton Wakeling wrote:
>> The `Generator` range is an eager violator of this requirement:
>> https://github.com/dlang/phobos/blob/ca292ff78cd825f642eb58d586e2723ba14ae448/std/range/package.d#L3075-L3080
>>
>>
>>
>> .... although I'd agree that's an implementation error.
>
> Yeah, that seems like a bug.

I guess this controversy was hashed out when this function was added. So 
this is very much intentional:

https://github.com/dlang/phobos/pull/2606
https://github.com/dlang/phobos/pull/3002

I'll start a new thread to discuss it. I think it needs to be changed.

-Steve


More information about the Digitalmars-d mailing list