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

Home » Public Forums » archive » Re: brain twister
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: brain twister [message #22802 is a reply to message #22800] Fri, 08 December 2000 11:37 Go to previous messageGo to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Craig Markwardt wrote:
>
> Okay, enough ideology for one week.

That's *almost* a pun. :o)

>
> ----- Example 2
> .comp
> function test2, x
> return, x
> end
>
> a = dindgen(5)
> (test2(a))[2] = -2
> print, a

You're right...this is weird. If you do a help:

IDL> help, test2(a)
A DOUBLE = Array[5]

How come the result isn't

<Expression> DOUBLE = Array[5]

???


--
Paul van Delst Ph: (301) 763-8000 x7274
CIMSS @ NOAA/NCEP Fax: (301) 763-8545
Rm.207, 5200 Auth Rd. Email: pvandelst@ncep.noaa.gov
Camp Springs MD 20746
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WNT environmental vars
Next Topic: IDLWAVE 4.6

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

Current Time: Wed Oct 08 17:30:31 PDT 2025

Total time taken to generate the page: 0.00855 seconds