Stack allocated arrays

Namespace rswhite4 at googlemail.com
Sun Nov 18 11:18:27 PST 2012


On Sunday, 18 November 2012 at 16:01:10 UTC, Tobias Pankrath 
wrote:
> On 18.11.2012 16:46, Namespace wrote:
>> Ok, understood.
>> I hoped that I could create a better interface.
>
> I think a good interface would be a generic array class/struct 
> that can be parameterized to use a stack allocator.

The best would be if my code would work.
I wish some syntax like:
int len = 42;
int[len] arr = stackalloc!(int)(len);


More information about the Digitalmars-d-learn mailing list