comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Logical vs. Bitwise boolean operators
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Logical vs. Bitwise boolean operators [message #29155] Fri, 01 February 2002 13:17 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Jeff Guerber wrote:

> On Fri, 1 Feb 2002, James Kuyper wrote:
...
>> IF (!D.FLAGS AND 8) AND (ratio LE minrat) THEN BEGIN
>
>
> James, as an aside, this statement tries use AND both bitwise _and_
logically.
> But I understand your point...

I realized after I sent the message that I'd used a messy example. It
doesn't reflect any single, consistent mis-interpretation. I now fully
understand what's going on, but that code represents an intermediate
stage where I was just plain confused. :-)

...
> When confronted with a similar situation I like to use "IF ((!D.FLAGS
> AND 8) NE 0) ...", which is a little more general.

I used that construct two more times today, and by the time I'd written
it the third time, I'd figured out the advantage of "NE 0".
[Message index]
 
Read Message
Read Message
Previous Topic: Tick formatting
Next Topic: Multiple DICOM images

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 06:39:45 PDT 2025

Total time taken to generate the page: 1.03412 seconds