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 #68090 is a reply to message #68085] Fri, 18 September 2009 07:04 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On Sep 17, 3:32 pm, Paolo <pgri...@gmail.com> wrote:
> [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...

You're a sick man, Paolo. ;-)

-Jeremy.
[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: Fri Oct 10 16:02:36 PDT 2025

Total time taken to generate the page: 0.40381 seconds