Use class template as a type
rikki cattermole via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 28 03:30:23 PST 2016
In your case I'd just swap out ``MyClass[] someArray;`` to ``Object[]
someArray;``.
But only because there are no members added without the extra typing in
MyClass.
Remember types in meta-programming in D are not erased, they exist in
the assembly and are unique. Unlike Java who did the implementation
rather wrong.
More information about the Digitalmars-d-learn
mailing list