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

Home » Public Forums » archive » Re: i don't see how to summarize it into an object name... :)
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: i don't see how to summarize it into an object name... :) [message #68107 is a reply to message #68090] Thu, 17 September 2009 12:32 Go to previous messageGo to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
[skip]

> for i=1,3 then begin
>
>    dummy = execute(plot,arr_'+string(i,format='(i1)')
>
> endfor

Is it just me that feels that such a code is quite ugly
and obscure?

I mean, if we start using "execute" every time we encounter
some IDL coding difficulties, we may end up with programs
that look like the following incomprehensible and marginally
useful piece of code (that I am pretty sure the google goups
post utilities will break up in all the wrong places).


execute='(i=execute("'&execute=execute(execute+'"'+$
'))--')&i$1i='print'&i1$i='scope_varname'&i2$i=' s'+$
'trtrim'&i$i='i'&i$i=i$i+'$i=('+i2$i+'('+i1$i+'(' +$
i$i+')'+','+i$i+'+++1))[0]'&execute=execute(i$i)&i=$
' for '+i$i+' = '&execute=execute('i2$i='+i2$i+'('+$
call_function(i2$i,execute) +',2)')&execute=i+i2$i+$
','+i2$i+i2$i+' do '+i$1i+','+i$i
execute=execute(execute)


Ciao,
Paolo

PS: I can't offer any excuse for posting this, other
than it seems this group has become more boring
in David's absence...
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: subset an image by coordinates
Next Topic: passing parameters to .sav file in IDL VM

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

Current Time: Sat Oct 11 15:32:53 PDT 2025

Total time taken to generate the page: 0.71925 seconds