ITWissen.info - Tech know how online

mixin

Mixin is a programming construct of the programming language D and is used in connection with template programming

. With the use of the keyword mixin the declarations are inserted by the template at the respective place in the program code. The template declaration inserted with mixin has its own name range, but this means, as it were, that variables with the same name

are overwritten. By using this construct, it is possible to emulate the mechanism of multiple inheritance ofclasses, which does not exist in the D programming language.

Informationen zum Artikel
Englisch: mixin
Updated at: 15.07.2009
#Words: 115
Links: