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

Home » Public Forums » archive » Why does '[1,2,3] EQ [2]' yield zero but '[1,2,3] EQ 2' yield [0,1,0] ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Why does '[1,2,3] EQ [2]' yield zero but '[1,2,3] EQ 2' yield [0,1,0] ? [message #54365] Fri, 01 June 2007 19:18
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Hi all,

The post title says it all. I thought "everything" in IDL was an
array, but using [2] and 2 with relational operators is not
equivalent...

I searched the doc and newsgroup for quite a while, but obviously I
did not come up with search terms that are specific enough.

It took me a while to track this down in some code I was writing. My
bug is now fixed *but* I don't understand why exactly. And we all know
voodoo and IDL don't mix :-) can somebody clarify please?


Many thanks,
Gianguido

PS: I have a feeling this issue came up not too long ago, just
couldn't find it. Sorry :-( Feel free to dispense with this question
with a link.
[Message index]
 
Read Message
Previous Topic: make_scalar?
Next Topic: Re: Why does '[1,2,3] EQ [2]' yield zero but '[1,2,3] EQ 2' yield [0,1,0] ?

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

Current Time: Sat Oct 11 14:36:19 PDT 2025

Total time taken to generate the page: 1.35790 seconds