The following code: bool x, y; if(x = y) {} results in the following error: Error: '=' does not give a boolean result Which is clearly not a correct message. A better message would be something like: Error: '=' cannot be used inside an if condition
Be careful with the wording, because this is allowed in D: if(bool c = !b) Writing a compiler requires literary expression skills :-) A possible error message, that looks too much complex: Error: if(x = y) is now allowed, use if(T x = y) or if((x = y) == z).
*** This issue has been marked as a duplicate of issue 2532 ***
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル