Does D have some way to dynamically allocate on the stack? I'm looking for something roughly equivalent to the following C code.

int doSomething(size_t len)
{
    char stackBuffer[len + 1];
    doSomethingElse(stackBuffer);
}

Thanks,
Mike

Reply via email to