isInfinite isInadequate

Peter Alexander peter.alexander.au at gmail.com
Tue Mar 12 04:29:16 PDT 2013


On Tuesday, 12 March 2013 at 11:24:00 UTC, Dmitry Olshansky wrote:
> 12-Mar-2013 14:49, monarch_dodra пишет:
>
>> Up until not so long ago, it was not possible to slice 
>> infinite ranges.
>> It is now possible. Unfortunatly, because RA ranges with 
>> slicing don't
>> guarantee that r[0 .. $] is legal, things are still 
>> complicated in
>> template code.
>
> I thought it goes in opposite direction - slicing of Infinite 
> range works only for ..$ slice. The chief new requirement of 
> slicing is self-assign ability.

I believe the official stance on this is that self-assign is only 
required for non-infinite ranges.


More information about the Digitalmars-d mailing list