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

Home » Public Forums » archive » screwy system variables !? [2]
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
screwy system variables !? [2] [message #6602] Thu, 25 July 1996 00:00 Go to previous message
trujillo is currently offline  trujillo
Messages: 2
Registered: July 1996
Junior Member
(Had some posting problems on the first one)
It seems like I can't actually create new system variables in a
function or program and use them later in that same function/program.
For example, I have the following program (in file tester.pro):
> pro tester
> defsysv, "!tester", 222
> print, !tester ;this line directly refers to !tester
> end

When I try to compile/run it, I get the following error (unless I
manually define !tester at the command line first):
> % Not a legal system variable: !TESTER.

Now, I change the program to
> pro tester
> defsysv, "!tester", 222
> help, /system_variables ;this line indirectly tells me about !tester
> end

And it compiles and runs fine, and output suggests that the global
variable has been created: "!TESTER = 222". What the heck is
going on? Is this a bug? Why can't I use a system variable I have
just defined later in the same program? I'm using IDL version 4.0.1.
Maybe I should give up and use a more rational language like C/C++!

-Chad

chad@galileo.ifa.hawaii.edu
http://chipotle.ifa.hawaii.edu/~chad/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: screwy system variables !?
Next Topic: a BUG or not a BUG in IDL ?

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

Current Time: Wed Oct 08 19:13:17 PDT 2025

Total time taken to generate the page: 0.00472 seconds