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

Home » Public Forums » archive » Bug in operator precedence
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Bug in operator precedence [message #45182] Tue, 16 August 2005 00:06
marc schellens[1] is currently offline  marc schellens[1]
Messages: 183
Registered: January 2000
Senior Member
According to the manual, operators

~ || &&

have lower precedence than

AND OR XOR

Now I get:
IDL> print, 1 && ~3 and 4
0
IDL> print, 1 && (~3) and 4
0
IDL> print, 1 && ~(3 and 4)
1

I would consider this as a bug.
Anybody agree or am I missing something?

Cheers,
marc
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ENVI MTMF scores
Next Topic: Looking for tetrahedra. Searching sorted lists.

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

Current Time: Wed Oct 08 13:40:28 PDT 2025

Total time taken to generate the page: 0.00495 seconds