Last update January 18, 2008

Feature Request List /

What is a Mixin?

Ruby (and, I hope, D): A mixin is a class-like entity whose methods/fields are mixed-in to the mixing class just as if the author of that class had written them manually.

C++: A mixin class is a non-primary base class, which generally provides only types and static & non-virtual methods. (If it contains fields / virtual methods, it's a fully fledged base class, IMO)

-- Matthew Wilson, NG:D/28348

Proposed Specification

DigitalMars:d/mixin.html (Added in DMD 0.89)

Some Other Mixin Threads

FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: January 18, 2008 21:35 (diff))