Doc Comments /
Mixins
Difference (last change) (no other diffs, normal page display)
Added: 3a4,5
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. |
Comments
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.
Links
Corresponding page in the D Specification
- See Mixin Statement (
D 1.x/
D 2.x) in lanaguage spec for more info.