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

Home » Public Forums » archive » call_procedure with a dynamically created arguments list?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
call_procedure with a dynamically created arguments list? [message #50617] Fri, 06 October 2006 13:58
Dominic Metzger is currently offline  Dominic Metzger
Messages: 30
Registered: August 2006
Member
I have already discussed this with a few of you but wanted to see if
anyone else might know a way of doing the following:

Is it possible to do something like:

foo = "bar"
bla = 'blu"
args=[]
if (N_ELEMENTS(foo) ne 0) then
args=[args, foo]
if (N_ELEMENTS(bla) ne 0) then
args=[args, bla]

CALL_PROCEDURE('some_proc', args)

So, the goal is to build dynamically an arguments list that will be
passed in to CALL_PROCEDURE, CALL_FUNCTION or CALL_METHOD. (I want to
avoid EXECUTE)

thanks,

dometz

PS: My goal is to write a transparent wrapper for IDL functions. So, I
would like that when using the wrapper or not, "everything" (including
error message) stays the same.

PS2: David: Yeah, I still havent given up on this. ;-)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: input expression as a variable.
Next Topic: Moving window mode

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

Current Time: Wed Oct 08 13:36:50 PDT 2025

Total time taken to generate the page: 0.00483 seconds