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

Home » Public Forums » archive » how to use _EXTRA convention
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
how to use _EXTRA convention [message #13113] Fri, 09 October 1998 00:00
nospam is currently offline  nospam
Messages: 21
Registered: November 1997
Junior Member
I'm a little confused about the _EXTRA convention for passing
parameters to a function works. I'm writing a routine to use with
mpfit (thanks to Craig B. Markwardt), and I want to pass in some extra
arguments via the functargs command. The mpfit procedure calls the
function that I specify like this:

fp = call_function(fcn, xp, _EXTRA=fcnargs)

So, if fcnargs = { X: Xvals, Y: Yvals, Err:Evals, D:dval, G:gval }

then do I define my function like this:

function myfunct, P, X=x, Y=y, Err=err, D=d, G=g

or like this:

function myfunct, P, _EXTRA=e
x = e.X
y = e.Y
err = e.Err
d = e.D
g = e.G


Or something else entirely?

thanks,
scott




--
Scott Stuart
stuart at ll mit edu
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Exceed + Colours
Next Topic: Re: Two quick questions

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

Current Time: Thu Oct 09 22:17:49 PDT 2025

Total time taken to generate the page: 0.64002 seconds