isInfinite isInadequate
Brad Roberts
braddr at slice-2.puremagic.com
Tue Mar 12 12:28:38 PDT 2013
On Tue, 12 Mar 2013, monarch_dodra wrote:
> 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".
Ok. The use of 'can' there is generally a much stronger implication than
that read of it. I read it as an implies rather than allows for the
possibility, and I'll bet I'm not alone.
More information about the Digitalmars-d
mailing list