Wait, what? What is AliasSeq?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 9 12:19:41 PDT 2015


On 7/9/2015 12:56 AM, deadalnix wrote:
> Several of which actually use linked list for list and probably shouldn't
> provide random access.

Yes. Consider:

     for (int i = 0; i < list.length; ++i)
           sum += list[i];

If indexing was allowed on a list, this would seem like perfectly reasonable code.


More information about the Digitalmars-d mailing list