Am Tue, 18 Nov 2014 19:33:42 +0000
schrieb "bearophile" <bearophileh...@lycos.com>:

> Marco Leise:
> 
> > foreach (i; 0 .. a.length)
> > {
> >     somework();
> > }
> 
> Better:
> 
> foreach (immutable _; 0 .. a.length)
> {
>      somework();
> }
> 
> Unfortunately this syntax is not yet supported, for unknown 
> reasons:
> 
> foreach (; 0 .. a.length)
> {
>      somework();
> }
> 
> Bye,
> bearophile

I know, _ doesn't cut it for 2D operations (2 loops) though or
you end up with _ and __ or _1 and _2.

-- 
Marco

Reply via email to