cannot resize a dynamic array of int[int]

Ran saotome.ran at googlemail.com
Tue Oct 21 10:24:28 PDT 2008


It should be a stupid question. But I still hope for any response. Could anyone tell me pls why the following code doesn't work ?

uint numberOfSubsets(uint n) {
	return (1 << n) - 1;
}

void main(char[][] args) {
	int[int] a[];
	a.length = numberOfSubsets(3);
}
The generated program runs endlessly. I'm using D2.
Ran



More information about the Digitalmars-d mailing list