At compile time, if an AA is null, then AA.length is zero. int main() { int[int] w; return w.length; // OK } But: static assert({ int[int] w; return w.length; }()==0); fails with: \..\src\druntime\import\object.di(362): Error: _aaLen cannot be interpreted at compile time, because it has no available source code Both D1 and D2.
https://github.com/D-Programming-Language/dmd/commit/51d83859ec2440f90ca1625640358502372b1465 https://github.com/D-Programming-Language/dmd/commit/411fdb0f7b391a028d40ec888b63d44ebcb646bb
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル