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

Home » Public Forums » archive » yet another idl memory question
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: yet another idl memory question [message #66965 is a reply to message #66748] Mon, 15 June 2009 11:57 Go to previous messageGo to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
Not to backseat code... but you can use HEAP_FREE for the heavy
lifting, and SCOPE_VARFETCH to save some bytes of disk space:

pro undef,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15
for i=1,n_params() do begin
name='V'+strtrim(i,2)
heap_free,scope_varfetch(name)
void=temporary(scope_varfetch(name))
endfor
end

IDL doesn't have the concept of the ARGV pointer, or argument list
which can be iterated through, but sometimes SCOPE_VARFETCH and/or
SCOPE_VARNAME can do the trick.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 4 byte integers
Next Topic: idl encoder/decoder of json

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

Current Time: Sat Oct 11 14:04:19 PDT 2025

Total time taken to generate the page: 0.63748 seconds