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
214 B
D
11 lines
214 B
D
module memory1;
|
|
|
|
void main()
|
|
{
|
|
auto a = new int[16];
|
|
{printf("array.length = %u\n", a.length);}
|
|
{a.length = a.length + 1;}
|
|
{printf("array.length = %u\n", a.length);}
|
|
{assert(a.length == 17);}
|
|
}
|