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

Home » Public Forums » archive » Re: bug(s) in IDL5.6?
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: bug(s) in IDL5.6? [message #35196 is a reply to message #35195] Fri, 16 May 2003 05:47 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Oesch (oesch@giub.unibe.ch) writes:

> just upgraded from IDL 5.4 to 5.6..and some of my old idl progs now
> won't compile anymore because of some "syntax error"....
>
> product=product(*,*,0)/100.
> ^
> % Syntax error.
>
> product(WHERE(PRODUCT NE nodata))=product(WHERE(PRODUCT NE nodata))+273.15
> ^
> % Syntax error.
>
>
> product(WHERE(PRODUCT EQ nodata))=!VALUES.F_NAN
> ^
> % Syntax error.
>
>
> subsetprod=product(minlonpos:maxlonpos,maxlatpos:minlatpos)
> ^
> % Syntax error.
>
> Ain't this strange?

I'd be learning about square bracket syntax for
array subscripting if I were you. :-)

Either someone turned the STRICTARR compiler option on
while you weren't looking (I'd have a word with your
office mate), or IDL has got it into its head that
PRODUCT is a function. In either case, square brackets
will straighten you out.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: running IDL without the DE
Next Topic: Passing file LUN to C routine

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

Current Time: Wed Oct 08 18:41:50 PDT 2025

Total time taken to generate the page: 0.00400 seconds