"dsimcha" <[email protected]> wrote in message news:[email protected]... > > 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.
