...ing logging 4.0

はてなブログに移行しました。D言語の話とかいろいろ。

2011-11-05から1日間の記事一覧

std.traits.isCovariantWith

import std.traits; interface I { I clone(); } class C : I { override C clone() // I.clone() の共変オーバーライド { return new C; } } void main() { { static assert(isCovariantWith!(typeof(C.clone), typeof(I.clone))); }{ C function() derived…