How to structure templated classes

Christian Köstlin christian.koestlin at gmail.com
Thu May 10 08:39:58 PDT 2012


On 05/10/2012 02:13 PM, Jacob Carlborg wrote:
> On 2012-05-10 13:41, Christian Köstlin wrote:
>
>> 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
>
> You don't need to mix in the classes. You can access them by:
>
> InnerClasses!(T).Inner1
>
ok .. sure you can use them by the way of InnerClasses, but you cannot 
use them directly anymore, which was one motivation to extract them from 
InnerClasses.

Thanks



More information about the Digitalmars-d-learn mailing list