Why not:
[code]
T[] stack(T, const size_t N)(void* m = alloca(T.sizeof * N))
{
    return (cast(T*)m)[0 .. N];
}
[/code]
?

Reply via email to