Vote on region allocator
Daniel Murphy
yebblies at nospamgmail.com
Sun Sep 25 21:26:06 PDT 2011
"dsimcha" <dsimcha at yahoo.com> wrote in message
news:j5otvn$2qg1$1 at digitalmars.com...
>
> T newArray(T, I...)(I sizes);
>
> // Usage:
> auto foo = newArray!(uint[])(5);
>
> This would be marginally do-able but very ugly if RTTI were used.
You can do this with a final templated interface method and forward to the
ugly rtti method.
Well, you will be able to when
https://github.com/D-Programming-Language/dmd/pull/131 gets merged.
More information about the Digitalmars-d
mailing list