December 05, 2006 Suggestion: foreach for tuples should be renamed static foreach | ||||
---|---|---|---|---|
| ||||
foreach for tuple expand in compile time. So I think that foreach for tuples should be renamed static foreach. #Sorry for my poor English now: foreach(i,T;TL){ static if(i>1){ } } suggestion: static foreach(i,T;TL){ static if(i>1){ } } |
December 05, 2006 Re: Suggestion: foreach for tuples should be renamed static foreach | ||||
---|---|---|---|---|
| ||||
Posted in reply to nazo | nazo wrote:
> foreach for tuple expand in compile time. So I think that foreach for tuples should be renamed static foreach.
> #Sorry for my poor English
>
> now:
> foreach(i,T;TL){
> static if(i>1){
>
> }
> }
>
> suggestion:
> static foreach(i,T;TL){
> static if(i>1){
>
> }
> }
I've suggested the same thing and still think "static" should be needed there.
L.
|
Copyright © 1999-2021 by the D Language Foundation