static init c struct with array filed
Era Scarecrow
rtcvb32 at yahoo.com
Wed Mar 16 14:42:02 UTC 2022
On Wednesday, 16 March 2022 at 11:27:20 UTC, user1234 wrote:
> assuming the c library takes by reference
My experience all arrays are effectively just pointers, and the
brackets/length is only really applicable to stack allocated
fixed length allocations. In my own C projects i always used
pointers to pass arrays around.
There's also static construction, though i don't see how that
improves anything
https://dlang.org/spec/module.html#staticorder
More information about the Digitalmars-d-learn
mailing list