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

Home » Public Forums » archive » temporary() problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
temporary() problem [message #86024] Tue, 24 September 2013 13:25 Go to previous message
spluque is currently offline  spluque
Messages: 33
Registered: September 2013
Member
Hi,

I'm not sure I understand why the variable 'a' below gets undefined after calling a procedure using temporary():

IDL> a='a, b, c'
IDL> help, a
A STRING = 'a, b, c'
IDL> .run "test.pro"
% Compiled module: TEST.
IDL> test, a
IDL> help, a
A UNDEFINED = <Undefined>


The contents of test.pro:

PRO TEST, str
ostr=strsplit(temporary(str), ', ', /extract)
END


Why is temporary() messing with the top level environment?


Seb
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reading part of a netcdf file?
Next Topic: A newbie question regarding 3D plotting

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

Current Time: Thu Oct 09 23:46:20 PDT 2025

Total time taken to generate the page: 0.00221 seconds