How to iterate using foreach on a class?

Johannes Pfau nospam at example.com
Sun Nov 3 04:58:37 PST 2013


Am Fri, 01 Nov 2013 08:50:19 -0700
schrieb Ali Çehreli <acehreli at yahoo.com>:

> On 11/01/2013 08:32 AM, Dmitry Olshansky wrote:
> 
> > In short we have 2 ways:
> > 1) Ranges
> > 2) opApply
> 
> As another shameless plug, those foreach methods are included in this 
> chapter:
> 
>    http://ddili.org/ders/d.en/foreach_opapply.html
> 
> Ali
> 

I just saw a small mistake on that page:

".popFront() must move to the element that is one before the end (skips
the back element)"

popFront should be popBack.



More information about the Digitalmars-d-learn mailing list