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 #50750 is a reply to message #50749] Wed, 18 October 2006 11:51 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Yeah, yeah. IDL is confused. It thinks a function call
> is a variable reference. I get that that. I even understand
> how this works internally (more or less).
>
> What I don't get is how THIS line causes the confusion:
>
> bar = BYTSCL(bar, TOP=(ncolors-1) < (255-bottom)) + bottom
>
> And this line doesn't:
>
> bar = BYTSCL(bar, TOP=(ncolors-1 < (255-bottom))) + bottom
>
> Any insights into that?

I guess it's fair to wonder why I care about this. One
reason I care is that I think the line that causes
confusion is the correct way to write the line, since
it is less ambiguous than the second way. :-)

Cheers,

David

P.S. Anyone can fix problems. Experts, though, are suppose
to understand why a whack on the side of the box fixes
the damn thing.

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[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: Thu Oct 09 21:42:12 PDT 2025

Total time taken to generate the page: 1.91891 seconds