dynamically allocating on the stack

Mike Franklin slavo5150 at yahoo.com
Sat Apr 21 07:37:50 UTC 2018


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


More information about the Digitalmars-d-learn mailing list