This is a regression. The code used to work in dmd2.051: import std.string:indexOf; static assert(indexOf("foobar","foo")==0);
in dmd2.052 it says: \src\phobos\std\string.d(578): Error: cast(const(char)*)balance cannot be interpreted at compile time main.d(6): Error: cannot evaluate indexOf("foobar","foo",cast(CaseSensitive)1) at compile time main.d(6): Error: static assert (indexOf("foobar","foo",cast(CaseSensitive)1) == 0) is not evaluatable at compile time
https://github.com/D-Programming-Language/dmd/commit/610d4fe1cf8aeaf8f04d5f32ccce72ab827b1f25
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル