manipulate ouput keywords [message #79565] |
Tue, 13 March 2012 07:05 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hello guys,
I am developing a library and I am completely lost in something that I don't know if it's possible to do.
My problem is related to the output keywords that some routines can have. What I am trying to do is to collect those keywords using the extra or ref_extra keyword and return the correct output value to the caller.
I don't know if this is clear but see the example below:
IDL> TEST, OUT1=out1, OUT2=out2
PRO TEST, _REF_EXTRA=extra
;; My routine should be able to return the values for out1 and out2
;; without knowing the keyword names, is that possible ?
END
I tried with something like extra={OUT1: 1, OUT2: 2} but the caller does not receive the information properly.
Please, any help will be appreciated,
nata
|
|
|