Mixin Aspect-Orientation: Comments please!

Ary Borenszweig ary at esperanto.org.ar
Sun Jan 16 16:50:14 PST 2011


You can already do that:

mixin template AdviceX() {
  int fun(int x) {
    ...
    return fun_without_advice();
  }
}

class Foo {
  mixin AdviceX;

  int fun_without_advice(int x) {
  }
}


More information about the Digitalmars-d mailing list