How can I allocate a int[] array on stack?

Daniel Kozak kozzi11 at gmail.com
Fri Mar 26 06:31:44 UTC 2021


On Fri, Mar 26, 2021 at 6:50 AM Jack via Digitalmars-d-learn <
digitalmars-d-learn at puremagic.com> wrote:

> What's the equivalent of C's VLA in D? scoped from std.typecons
> doesn't seem to work with arrays. Should I use alloca() for my
> array or is there something else?
>

https://dlang.org/library/std/array/static_array.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20210326/73dbbb57/attachment.htm>


More information about the Digitalmars-d-learn mailing list