| Dave Flowerday |
18-01-2004 15:25 |
Re: Logical And Bitwise AND
Quote:
Originally Posted by Atheist
However, just as war and diplomacy can be used to the same end, && and & can also.
|
We all understand what you're trying to say. What you're saying is that in one particular case, they happen to give the same answer. However, the manner in which you keep saying it is very misleading and implies that they can be used interchangeably. Please keep in mind that many inexperienced people come here looking for advice. The way you've worded several posts in this thread implies that & and && can be used interchangeably, which isn't true.
Things like this:
Quote:
Bitwise AND can be used for the same purpose as logical AND.
|
Most people would read this to mean that & and && can be used "for the same purpose" which is not true, at least not in the generic case. On a job, if you use the wrong AND (even if it gives the same result!) you will be told to fix it.
|