C# code sample

Jesse Phillips jessekphillips+D at gmail.com
Tue Jan 25 11:18:08 PST 2011


Mandeep Singh Brar Wrote:

> How about simply saying:
> 
> void foo(double[] data)
> {
>    foreach (d; data)
>    {
>      do_some_stuff(d);
>    }
> }
> 
> all ranges are already foreachable.
> 
> Regards
> Mandeep

He is iterating over a range/iterable of double[], Simen got the type check wrong, which I pointed out.



More information about the Digitalmars-d-learn mailing list