Implement a class with mixins

Derek Parnell derek at psych.ward
Mon May 8 14:19:09 PDT 2006


On Tue, 09 May 2006 02:19:07 +1000, Sean Kelly <sean at f4.ca> wrote:

> Don Clugston wrote:
>>  In every case I've seen or dreamt up so far, a template is either  
>> intended to be a mixin, or not. Is that your experience too?
>
> Yes.

  Yes.

>> I suspect that 'mixin' should be specified in the template declaration,  
>> rather than just the instantiation.
>
> Perhaps it should, though I'm hesitant to suggest a special declaration  
> syntax unless it offers something over the current approach.

Communication. It would tell code readers/maintainers the intention of the  
author. It reduces guess work on their part, and this leads to cheaper  
maintenance costs (less mistakes, less reading time, etc).


-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list