Last update January 18, 2008

Feature Request List /
Mixins



Difference (previous author) (Change, Edit, normal page display)

Changed: 4,10c4
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)
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.

Changed: 12c6,8
-- Matthew Wilson, post 28348
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

Changed: 16c12
http://www.digitalmars.com/d/mixin.html (Added in DMD 0.89)
DigitalMars:d/mixin.html (Added in DMD 0.89)

Changed: 20,26c16,22
* 16 May 2004, WalterBright, digialmars.D:1228
* 30 Apr 2004, MatthewWilson, Mixins Specification Proposal ( D:28936 / digitalmars.D:133)
* 30 Apr 2004, fred, Mixins Specification Proposal ( D:28933)
* D:22287
* D:21059
* D:20347
* D:9093
* 16 May 2004, WalterBright, NG:digitalmars.D/1228
* 30 Apr 2004, MatthewWilson, Mixins Specification Proposal ( NG:D/28936 / NG:digitalmars.D/133)
* 30 Apr 2004, fred, Mixins Specification Proposal ( NG:D/28933)
* NG:D/22287
* NG:D/21059
* NG:D/20347
* NG:D/9093

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))