Fixed length vs dynamic arrays

Alain De Vos devosalain at ymail.com
Fri May 7 22:21:09 UTC 2021


Following code compiles without errors, only errors during runtime
```
int main(){
	int[2]  a=new int[2];
	int[]   b=new int[0];
	int[2]  c=[1,2];
	a=a~3;
	b=b~3;
	c=c~3;
	c=b;
	b=a;
	a=c;
return 0;
}
```



More information about the Digitalmars-d-learn mailing list