Date: Mon, 1 Jun 2026 16:11:30 +0100
On Mon, 1 Jun 2026, 15:53 Sebastian Wittmeier via Std-Proposals, <
std-proposals_at_[hidden]> wrote:
> Would it have to be a language feature?
>
> Can't you just define an object managing a linked list with alloca? And
> calling a member function to append a new object?
>
alloca is an extension. This would standardise it (or something similar)
Some bikeshedding: This looks like a storage duration. Maybe it could be
done with a specifier like `function_local auto _ =
std::async(EntryPoint);`. This also prevents things like `int
namespace_scope_variable = ((%...), 0);` from being syntactically possible.
GNU's alloca has an emulation mode using malloc on some platforms where the
'normal' implementation is unavailable. The semantics will need to be
defined to be compatible with these sorts of platforms
std-proposals_at_[hidden]> wrote:
> Would it have to be a language feature?
>
> Can't you just define an object managing a linked list with alloca? And
> calling a member function to append a new object?
>
alloca is an extension. This would standardise it (or something similar)
Some bikeshedding: This looks like a storage duration. Maybe it could be
done with a specifier like `function_local auto _ =
std::async(EntryPoint);`. This also prevents things like `int
namespace_scope_variable = ((%...), 0);` from being syntactically possible.
GNU's alloca has an emulation mode using malloc on some platforms where the
'normal' implementation is unavailable. The semantics will need to be
defined to be compatible with these sorts of platforms
Received on 2026-06-01 15:11:49
