Iterators for D

Mike Capp mike.capp at gmail.com
Mon Nov 6 13:33:53 PST 2006


> Overload opIndex for rvalue access
> [...]
> Overloading opIndex also will work for random access

Wouldn't this make iterators incompatible with e.g. linked lists? Seems to defeat
much of the purpose.

(It might be possible to implement random access for a list, but it's not
something you'd want to encourage.)



More information about the Digitalmars-d mailing list