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

Home » Public Forums » archive » Need IDL 8 Help
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: Need IDL 8 Help [message #87327 is a reply to message #87326] Fri, 24 January 2014 12:22 Go to previous messageGo to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
> Humm. A overloaded operator is kinda like introducing a paragraph into
> the documentation that is written in Serbian, isn't it? ;-)

I thought so until I tried to write one :-p ... not quite sure how to interpret your sarcasm this time, so here is a [perhaps unnecessary] explanation.

Basically, if you do

[list] EQ [something]

each element of [list] will be checked to see if it is equal to [something]. However, one element in a list is not the same as an element in an array. Building on the previous example,

> IDL> message = 'CHANGED_COLORS'
> IDL>
> IDL> theHash = hash()
> IDL> obj1 = obj_new('idl_container')
> IDL> obj2 = obj_new('idlanroi')
> IDL> obj3 = obj_new('idlgrview')
> IDL>
> IDL> theHash[message] = list()
> IDL> theHash[message] -> add, obj1
> IDL> theHash[message] -> add, obj2
> IDL> print, theHash[message] eq obj3
> 0 0

IDL> theHash[message] -> add, [obj1, obj2]
IDL> print, theHash[message] EQ obj1
1 0 0
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TODO tag in IDL Workbench?
Next Topic: Unable to create X windows Window is iconified and has no backing store...

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

Current Time: Fri Oct 10 14:33:40 PDT 2025

Total time taken to generate the page: 0.64144 seconds