This code should be compiled, but it generate error. ---- bool func(string s) { if (s[0..1]) return true; return false; } enum f = func("str"); void main(){} ---- test.d(7): Error: cannot evaluate func("str") at compile time ----
https://github.com/D-Programming-Language/dmd/pull/255
https://github.com/D-Programming-Language/dmd/commit/ea9ace3e38ac9c443e5db36c2ea98c984e3e2a89 https://github.com/D-Programming-Language/dmd/commit/0cbb31f3f5117b2bad38fef6c2817476a1c5e165
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル