The article makes a case for mixins as better alternative to the C pre-processor, but I have a feeling that it is intended for other things. Can you add some examples of significant use cases for using mixins vs. writing plain code? The current example serves to demonstrate the mixins syntax, not much more.
- Corresponding page in the D Specification
- See Mixin Statement ( D 1.x/ D 2.x) in lanaguage spec for more info.