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

Home » Public Forums » archive » arrays vs. functions conflicts
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: arrays vs. functions conflicts [message #38448 is a reply to message #38394] Fri, 05 March 2004 15:45 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Paolo Grigis <pgrigis@astro.phys.ethz.ch> writes:
> Dear Craig,
>
> should you ever feel like giving up idl 4, I think you could be
> surprised how many people might volunteer to help you translating
> some code to []-notation!

Dear Paolo--

I admit that I don't use IDL 4 any more. *BUT*, my finger muscles
still know round parenthesis for IDL. It's not a habit I can easily
change.

The behavior you found is frustrating, because IDL should be smarter
than that. In fact, it *was* smarter in the past. IDL 4 and IDL 5.0
had no problems with your example, so there was something that RSI
changed in IDL 5.1 that dumb-ified IDL's recognition of arrays.

Note that even if I put these explicit statements in MPFIT:

limits = 0 & limits(0) = 0

before any other uses, so clearly IDL *should* know that LIMITS is a
variable in this context, IDL 5.1 and above fails to compile.

Truly unfortunate. I would consider changing to square bracket
notation, but it's hard to find time for such a mundane task. Knowing
that I did it right is another issue. I guess I'll try Wayne's
auto-converter at some point soon. And then I have to retrain my
fingers.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@REMOVEcow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to get info about ROI from iTools IIMage?
Next Topic: IDL JavaBridge on Mac OS X

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

Current Time: Sat Oct 11 10:54:19 PDT 2025

Total time taken to generate the page: 0.28598 seconds