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.
Re: Use class template as a type
rikki cattermole via Digitalmars-d-learn Mon, 28 Nov 2016 03:36:13 -0800
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.
- Use class template as a type dm via Digitalmars-d-learn
- Re: Use class template as a ... rikki cattermole via Digitalmars-d-learn
- Re: Use class template a... dm via Digitalmars-d-learn
- Re: Use class templa... rikki cattermole via Digitalmars-d-learn
- Re: Use class te... dm via Digitalmars-d-learn
- Re: Use class te... Namespace via Digitalmars-d-learn
- Re: Use cla... rikki cattermole via Digitalmars-d-learn
- Re: Use cla... Basile B. via Digitalmars-d-learn
- Re: Use... ag0aep6g via Digitalmars-d-learn