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

Home » Public Forums » archive » Re: convert string into the name of a variable
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: convert string into the name of a variable [message #28377] Thu, 06 December 2001 08:41 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Frederic Raison wrote:

> Is there anybody who could tell me if there is an IDL instruction, like
> in Matlab, able to convert a string into the name of a variable and
> vice-versa?

Runtime variable name definition. The history repeats itself for sure.
I was told by RSI developers when I started in IDL that once you find
yourself wanting this, it means that your progamming needs serious
phylosophy readjustment.
One side effect is that any time you save and restore a runtime-named
variable you need to again find out what the name of it is. And it is
not the only flaw.
I came to IDL from IGOR Pro, where meaningful names are the cornerstone
of it all and programming holds together by explicit naming conventions.
But in IGOR it is so because you have all your variables at the global
(*main*) level. IDL allows a lot more flexible approach because it is a
*reuseable* development environment.

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: I have committed a sin CONGRID
Next Topic: Plotting data spanning multiple UTM zones

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

Current Time: Fri Oct 10 10:17:38 PDT 2025

Total time taken to generate the page: 0.39854 seconds