how to initialize immutable 2 dim array

Michal Minich michal.minich at gmail.com
Sun Oct 31 12:21:37 PDT 2010


On Sun, 31 Oct 2010 19:13:33 +0000, Michal Minich wrote:

>>     foreach (y; 0 .. (*pArr)[0].length)

also good tip on the foreach syntax, it is much cooler :)

is there some performance overhead compared to using  
for (int x = 0; x <= 255; x++) ?


More information about the Digitalmars-d-learn mailing list