Get the latest tech news

Template Mixins


D Programming Language

A TemplateMixin takes an arbitrary set of declarations from the body of a TemplateDeclaration and inserts them into the current context. A TemplateMixin can occur in declaration lists of modules, classes, structs, unions, or as a statement. It is analogous to cutting and pasting the body of the template into the location of the mixin into a nested scope.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Template Mixins

Template Mixins