How to structure templated classes
Christian Köstlin
christian.koestlin at gmail.com
Thu May 10 04:41:14 PDT 2012
On 05/09/2012 10:48 PM, Jacob Carlborg wrote:
> Perhaps you can use template mixins (untested).
>
> class Test (T)
> {
> mixin InnerClasses!(T);
> }
>
> template InnerClasses (T)
> {
> static class Inner1 : Test!(T) {}
> // ... and so on
> }
thank for your answer,
yes .. that could possibly work, but would still force me to add all the
mixins to the main class. in addition to that i could not longer use the
mixin-classes standalone (i would have to mixin them into the place i
want to use them).
i think i have to rework my code ...
regards
christian
More information about the Digitalmars-d-learn
mailing list