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

Home » Public Forums » archive » Re: alternative to execute available?
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: alternative to execute available? [message #72880 is a reply to message #72878] Wed, 13 October 2010 08:00 Go to previous messageGo to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 13 Okt., 16:22, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
> On Wed, 13 Oct 2010, chris wrote:
>> Hi there,
>> I'm often using the _extra keyword in my routines together with a
>> simple approach to give variables values, like this one
>
>> pro test_ex, _extra=ex
>> for i=0l,n_tags(ex)-1l do _=execute((tag_names(ex))[i]+'=ex.(i)')
>> end
>
>> If I would call this like:  test,/hello,d=dist(10)
>> it would give me within the pro: d with the value dist(10) and hello
>> with the value 1
>
>> It works fine, but has one big limitation. I cannot use this technique
>> if I would like to produce working binaries (sav-files). Is there any
>> way to avoid the execute call without having information which
>> keywords were passed to the test_ex routine?
>
>> Thanks and regards
>
>> CR
>
> for i=0l,n_tags(ex)-1l do (scope_varfetch((tag_names(ex))[i], /enter))=ex.(i)
>
> regards,
> lajos

Very cool! THANK YOU!

Cheers

CR
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Official "release" of Coyote and Catalyst Libraries
Next Topic: Re: Official "release" of Coyote and Catalyst Libraries

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

Current Time: Sat Oct 11 11:53:48 PDT 2025

Total time taken to generate the page: 0.39965 seconds