ITWissen.info - Tech know how online

mixin

Mixin is a programming construct of the D programming language 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 of classes, which does not exist in the D programming language.

Informations:
Englisch: mixin
Updated at: 15.07.2009
#Words: 89
Links: programming language (PL), connection, template programming, keyword, program
Translations: DE
Sharing:    

All rights reserved DATACOM Buchverlag GmbH © 2024