Creating fixed array on stack

Andrey saasecondbox at
Fri Jan 11 14:46:36 UTC 2019

In C++ you can create a fixed array on stack:
> int count = getCount();
> int myarray[count];

In D the "count" is part of type and must be known at CT but in 
example it is RT.
How to do such thing in D? Without using of heap.

More information about the Digitalmars-d-learn mailing list