OpenMesh 1.9.5 ported to D

Jascha Wetzel firstname at mainia.de
Wed Sep 26 04:36:15 PDT 2007


Bill Baxter wrote:
>> besides that, i think the easiest way to add mixins is to have a 
>> wrapper template:
>>
>> class MixinMesh(alias MT, P=DEF_PROPS!(), T...) : Mesh!(P,T)
>> {
>>   mixin MT;
>> }
> 
> Hmm.  Yeh, I guess if you're talking about letting users add extra stuff 
> that the mesh internals don't use and aren't aware of, then there's not 
> much reason to inject it into the low level.  The above could just as 
> well be a user derived class.  No need for the mixin, and certainly no 
> need for it to be provided by the library.

oh, you're right of course. but it looks more interesting than a profane 
subclass ;)



More information about the Digitalmars-d-announce mailing list