mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
* throw is replaced with assert(0) * catch is ignored * better foreach support * various bugfixes
11 lines
172 B
D
11 lines
172 B
D
module arrays3;
|
|
|
|
void main()
|
|
{
|
|
int[] arr;
|
|
{arr = new int[25];}
|
|
{assert(arr.length == 25);}
|
|
{arr.length = arr.length + 5;}
|
|
{assert(arr.length == 30);}
|
|
}
|