isInfinite isInadequate

monarch_dodra monarchdodra at gmail.com
Tue Mar 12 11:15:54 PDT 2013


On Tuesday, 12 March 2013 at 18:08:25 UTC, Brad Roberts wrote:
> On Tue, 12 Mar 2013, monarch_dodra wrote:
>
>> One of the advantages is that an infinite range can have 
>> random access (meets
>> RA requirements), even though it has no length member 
>> (normally, any RA range
>> must have length).
>
> Where did this assertion come from?  There's nothing about 
> infinite that
> implies random access in the general case.  Consider a circular 
> linked
> list.  It's infinite but not random access.
>
> There's a class of infinite functions which are random access, 
> but
> definitely not all.

Yeah... ergo "can".


More information about the Digitalmars-d mailing list