[Issue 2646] Named mixins and member functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 5 10:05:30 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2646





------- Comment #1 from samukha at voliacable.com  2009-02-05 12:05 -------
Another try:

template Signal()
{
  void connect() {};
}

class AbstractButton
{
  mixin Signal clicked;
}

class CheckBox : AbstractButton
{
  mixin Signal toggled;
  mixin Signal kicked;
}


-- 



More information about the Digitalmars-d-bugs mailing list