On Sunday, 10 December 2023 at 18:16:05 UTC, Nick Treleaven wrote:
You can call `alloca` as a default argument to a function. The memory will be allocated on the caller's stack before calling the function:https://github.com/ntrel/stuff/blob/master/util.d#L113C1-L131C2I've just tested and it seems it works as a constructor default argument too.
Clever!