range violation

Nick Treleaven nospam at example.net
Mon Feb 28 09:44:31 PST 2011


On Mon, 28 Feb 2011 16:07:41 +0000, Dr.Smith wrote:

> With multidimensional arrays greater than 150x150, I get a range
> violation at run time: "core.exception.RangeError at pweight(54): Range
> violation" Is this a bug? Is there a work-around?

Can you show some code or a test case?

My sample below seems to work fine (but I'm still using an older dmd - 
v2.049):

	int[151][151] x;
	
	x[150][150] = 7;
	writeln(x[150][150]);


More information about the Digitalmars-d-learn mailing list