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

Home » Public Forums » archive » Declaration of variables in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Declaration of variables in IDL [message #26890] Wed, 03 October 2001 06:12 Go to next message
Hans de Boer is currently offline  Hans de Boer
Messages: 1
Registered: October 2001
Junior Member
Hi there,

I have been working with IDL for quite a while now, but never
encountered a way of fixing variable types in IDL. Especially when
adding new variables to old pieces of code, it can be very confusing if
a variable of that name was already in use. IDL simply changes the
variable type (including changes of array dimension) if required and
possible. If not possible, you are the lucky one to get run-time errors,
but if possible, the code seems to run quite nicely and the poor
programmer is left with apparently correct results.
I also have found that people new to IDL have generated extremely sneaky
bugs this way.
Does anybody know of making IDL performing an explicit variable check
during compilation ?

Thanks

Hans deB
Re: Declaration of variables in IDL [message #26935 is a reply to message #26890] Thu, 04 October 2001 06:09 Go to previous message
colinr is currently offline  colinr
Messages: 30
Registered: July 1999
Member
On Wed, 03 Oct 2001 12:49:39 -0700,
Todd Clements <mole6e23@hotmail.com> wrote:
> I get ahead of myself sometimes on the sarcasm. In my family, we first
> assume that what you say is a joke. Then we consider whether or not it
> may be true. Sometimes this get me in trouble. ;>

Reminds me of an argument I got into with my sister many years ago -
I said I didn't want to watch Starsky & Hutch. She didn't want to
watch it either, but assumed I was being sarcastic and really did want
to watch it. Ding - ding, round one ...

:-)


--
Colin Rosenthal
Astrophysics Institute
University of Oslo
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Voxar Plug & View 3D for sale at a DISCOUNT
Next Topic: array concatenation and optimization

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

Current Time: Wed Oct 08 13:53:13 PDT 2025

Total time taken to generate the page: 0.00625 seconds