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

Home » Public Forums » archive » Re: renaming a variable without making a copy
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: renaming a variable without making a copy [message #69014 is a reply to message #68923] Wed, 09 December 2009 07:02 Go to previous messageGo to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <hfmki3$1tf$1@aioe.org>, mgalloy <mgalloy@gmail.com> wrote:

> IDL can handle temporary variables differently. It knows the result of
> the expression
>
> tempVar + 1
>
> can be placed right back into the temporary variable. It also knows that
> when assigning a temporary variable to a new variable name, as in
>
> A = temporary(A) + 1
>
> the "assignment" can just attached the name "A" and change the metadata
> of the variable to indicate that it is no longer a temporary variable.

Thanks, Mike. After reading your post I found the Temporary Variables
page in the IDL internals documentation, which is actually relatively
clear:

"IDL maintains a pool of nameless variables known as temporary variables.
These variables are used by the interpreter to hold temporary results
from evaluating expressions, and are also used within system procedures
and functions that need temporary workspace. In addition, system
functions often obtain a temporary variable to return the result of
their operation to the interpreter."

Ken
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: journal call broken with 7.x
Next Topic: Re: Apropos of Nothing

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

Current Time: Wed Oct 08 19:16:12 PDT 2025

Total time taken to generate the page: 0.00545 seconds