isInfinite isInadequate

Brad Roberts braddr at slice-2.puremagic.com
Tue Mar 12 11:13:03 PDT 2013


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.


More information about the Digitalmars-d mailing list