#486 call_function does not pass assigned keywords

closed-fixed
nobody
None
5
2012-09-20
2012-09-19
Joanna
No

In the CVS version, call_function does not output keywords that are assigned a value in the function being called.

Example function:

function myfcn,x,yy=yy

a = x*2.
yy = 0.4
return,a

end

when calling:

result = call_function('myfcn',4.0,yy=yy)
help,yy
YY UNDEFINED = <Undefined>

by IDL correctly produces:
result = call_function('myfcn',4.0,yy=yy)
help,yy
YY FLOAT = 0.40000

Thanks.

Discussion

  • Marc Schellens

    Marc Schellens - 2012-09-20
    • status: open --> closed-fixed
     
  • Marc Schellens

    Marc Schellens - 2012-09-20

    Thanks

     

Log in to post a comment.