2010-05-09から1日間の記事一覧
import std.stdio; interface I { void f(); void g(); } class A : I { class B { void f() { writeln("hello"); } void g() { writeln("world"); } } private B b; this() { b = new B; } auto opDispatch(string name)() { mixin("b." ~ name ~ "();"); }…