質問

間に違いはありますか:

procedure InequalityMsg(ABool1, ABool2 : Boolean);
begin
  if ABool1 <> ABool2 then
    ShowMessage('Yeah, they''re not the same');
end;

procedure InequalityMsg(ABool1, ABool2 : Boolean);
begin
  if ABool1 XOR ABool2 then
    ShowMessage('Yeah, they''re not the same');
end;
役に立ちましたか?

解決

いいえ、まったく同じです。 (まあ、生成されたコードは異なるかもしれませんが、動作は決して違いを示しません。そして、パフォーマンスが進むにつれて、この質問は非常に重要ではありません。)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top