Template and alloca?

Imperatorn johan_forsberg_86 at hotmail.com
Wed May 26 08:38:29 UTC 2021


On Wednesday, 26 May 2021 at 07:34:06 UTC, Ola Fosheim Grøstad 
wrote:
> On Tuesday, 25 May 2021 at 17:55:17 UTC, Ola Fosheim Grostad 
> wrote:
>> Is it possible to use a template to write a "function" that 
>> provides initialized stack allocated memory (alloca)? Maybe I 
>> would have to use mixin?
>
> Nevermind, I've realized that I only need a way to force a 
> function to be inlined with 100% certainty. Then I can return a 
> structure holding alloca-allocated memory.

Do you accomplish that with just pragma inline? (for future 
reference)


More information about the Digitalmars-d-learn mailing list