www.digitalmars.com         C & C++   DMDScript  

D - A bug in 0.53

reply factory <tehdasX optushome.com.au> writes:
  Compiling the below code will cause the compiler to crash. 
  I'm actually assuming that it's correct code too, am I right?

---

typedef int[] tint;

void Set( inout tint array, int newLength )
{
	array.length= newLength;
}

int main()
{
	return 0;
}



-- 
 - Factory, there is no X in my email.
Feb 14 2003
parent reply "Walter" <walter digitalmars.com> writes:
Looks like a bug to me. I'll take care of it. -Walter
Feb 14 2003
parent reply factory <tehdasX optushome.com.au> writes:
In article <b2johs$l04$1 digitaldaemon.com>, walter digitalmars.com 
says...
 Looks like a bug to me. I'll take care of it. -Walter

Oh and the following produces a rather strange error message: --- int[] def = { 1, 2, 3 }; int main() { return 0; } -- - Factory, there is no X in my email.
Feb 14 2003
parent "Walter" <walter digitalmars.com> writes:
int[] def = [ 1, 2, 3 ];

should work. -Walter

"factory" <tehdasX optushome.com.au> wrote in message
news:MPG.18b88c60dc144b16989689 news.digitalmars.com...
 In article <b2johs$l04$1 digitaldaemon.com>, walter digitalmars.com
 says...
 Looks like a bug to me. I'll take care of it. -Walter

Oh and the following produces a rather strange error message: --- int[] def = { 1, 2, 3 }; int main() { return 0; } -- - Factory, there is no X in my email.

Feb 15 2003