[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing optional parameters through a wrapper routine



In article <MPG.130a39952208d999989a1f@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Hard to know what TVRD is doing

If a program with optional parameters did something like this:

PRO OPT_PARAM, p1, p2, p3

IF (N_PARAMS() EQ 2) OR (N_ELEMENTS(p3) EQ 0)) THEN 
   ... do the default thing for p3
ENDIF

then it would handle "wrapping", no?

Ken