void main () {
int x;
for (int i; i < 1000; i++)
for (int j; j < 1000; j++)
for (int k; k < 1000; k++)
x++;
writefln(x);
}
It took me a quarter of minute to write this piece of code, and again it compiles very fast. A billion iterations (1000 iterations per each loop) takes less than 3 seconds.
Cheers,
Boone
No comments:
Post a Comment