bearophile , dans le message (digitalmars.D:172300), a écrit :
If enumerate() is well implemented it's one way to avoid that
problem (other solutions are possible), now 'c' gets sliced, so
it doesn't start from zero:
import std.stdio;
void main() {
auto M = [[0, 0, 0, 0], [0, 0, 0,
In my D code I have inserted few times the same bug, that I show
here with a simplified example.
I have to create a matrix like this:
0 10 20 30
0 11 21 31
0 12 22 32
There are many ways to inizialize a matrix like that, this is one
way, but it's not complete:
import std.stdio;
void