...ing logging 4.0

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

2009-03-08から1日間の記事一覧

dmd2.011での変更点について

auto interface を再度有効にしました これの意味がわからないぞ. 一体何のことを言っているんだろう.

scope interface is not "scope" - dmd2.026

scope interface B {} scope class D1 : B {} class D2 : B {} // D2の定義にscopeがなくてよいのがおかしい void main() { B x = new D1;// scopeがないならエラーになるべき B y = new D2;// いろいろおかしい } だと思うんだけど,いまいち自信がない. …

Confusion of auto and scope as the class attribute - dmd2.026

auto class B {} void main() { B x; } a.d(4): variable a.main.x reference to scope class must be scope 俺はscope classじゃなくてauto classと書いたはずなんですけど. まだ昔のコードが残っているのか. さて,報告するか.

writeflnとinterface - dmd2.026

auto interfaceについて調べようと思ったら下のコードでdmdが死んだ. import std.stdio; interface A {} void main() { A x; writefln(x); } C:\D\dmd\windows\bin\..\..\src\phobos\std\format.d(2050): Error: no property 'toString' for type 'a.A' C:\…