Iterators for D

Tom S h3r3tic at remove.mat.uni.torun.pl
Mon Nov 6 13:10:15 PST 2006


Walter Bright wrote:
> Overload opIndex for rvalue access
> Overload opIndexAssign for lvalue access

Could you elaborate on how this would look like ? E.g. a usage example 
of iterators with the proposed design.


> foreach loops will not be able to have a 'key' parameter.

What's the particular reason for that restriction ?


--
Tomasz Stachowiak



More information about the Digitalmars-d mailing list