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

Home » Public Forums » archive » Re: code snippet
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: code snippet [message #25286] Wed, 30 May 2001 09:26 Go to previous message
Brian Jackel is currently offline  Brian Jackel
Messages: 34
Registered: January 1998
Member
But then there's the following fun:

IDL> key= 1 & print,(['first','second','third','fourth'])[[key]]
second
IDL> key= 3 & print,(['first','second','third','fourth'])[[key]]
fourth
IDL> key= 5 & print,(['first','second','third','fourth'])[[key]]
fourth
IDL> key= -999 & print,(['first','second','third','fourth'])[[key]]
first

Which is a "feature" when you expect it, and a bug when you don't :)


Brian
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to set path?
Next Topic: Sorting and image rescaling

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

Current Time: Wed Oct 08 10:57:05 PDT 2025

Total time taken to generate the page: 0.00410 seconds