Note the comments; the one is causing an error but should work: void blah(bool delegate(char[][] words ...) callback) { callback("foo", "bar"); // OK callback("foo"); // OK //callback(null, "bar"); // DMD 1.028: Error: expected 1 arguments, not 2 callback(cast(char[])null, "bar"); // OK callback((char[]).init, "bar"); // OK }
https://github.com/D-Programming-Language/dmd/pull/195
https://github.com/D-Programming-Language/dmd/commit/26bee8fc97a796b738f434503ce1ce122c7b011d https://github.com/D-Programming-Language/dmd/commit/b666b75c8d5a2d4aeef0c27e8fab382f0e04b687
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル