2010-06-02から1日間の記事一覧
mixin template Foo(T) { void f(){} void f(T){} } template Bar(T) { mixin Foo!T; @disable void f(){} @disable void f(T){} } mixin template Boo(T) { @disable void f(){} @disable void f(T){} } template Woo(T) { mixin Boo!T; void f(){} void f(…
(Dis)patchがあるならdiffがあっても・・・というわけで,いらんことを思いついた. template Hoge(T) { void f(){} void f(T){} } template Fuga(T) { void f(T){} } diff Hoge!int Fuga!int Diff; void main() { Diff.f(); Diff.f(int); // Hoge!intにもFu…