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

Home » Public Forums » archive » Re: Weirdest Error Ever
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: Weirdest Error Ever [message #50885 is a reply to message #50743] Thu, 19 October 2006 07:59 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Karsten Rodenacker wrote:
> This reminds me on a syntax error which is again and again bothering me:
>
> IDL> help,1 < -5
>
> help,1 < -5
> ^
> % Syntax error.
> IDL> help,1 < (-5)
> <Expression> INT = -5
> Possibly ...

This error is because <, >, +, and - have the same order of precedence.
So they are parsed left to right; "1 < -" is a syntax error. It does
mean that David is right in wanting to put ()'s around operands in a <
or > expressions (though in his particular case it was OK without them).

Mike
--
www.michaelgalloy.com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: fast search
Next Topic: shapiro wilks test

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

Current Time: Wed Oct 08 18:03:43 PDT 2025

Total time taken to generate the page: 0.00470 seconds