"dsimcha" <dsim...@yahoo.com> wrote in message news:j5otvn$2qg1$1...@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.