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

Home » Public Forums » archive » Re: saving variables between calls to a procedure?
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: saving variables between calls to a procedure? [message #31608 is a reply to message #31607] Wed, 31 July 2002 15:26 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst (paul.vandelst@noaa.gov) writes:

>> pro define,ptr
>> *ptr=[*ptr,10]
>> end
>
> Hmm. That seems like an extremely dangerous thing to do - couldn't you clobber something
> by concatenating like that? If IDL is smart enough to recognise that the next bit of
> memory may be used by something else it then seems that you would end up with a
> non-contiguous data structure (in the figurative).

This doesn't seem dangerous to me (perhaps because
I use the construct all the time). It seems like
one of those wonderful things IDL occasionally does
that makes you think to yourself "Now, by God, that's
how software *ought* to work!"

In any case, it works, over and over and over. And it
never occurred to me that non-contiguous data storage
could be involved, even remotely. Not only that, I
don't even have pointer memory leaking like a sieve,
which--I think--is the totally miraculous part. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Image scrolling, displaying axes from outside the visible window
Next Topic: fft application?

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

Current Time: Sat Oct 11 16:21:15 PDT 2025

Total time taken to generate the page: 1.43983 seconds