[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: keyword params in HISTOGRAM
- Subject: Re: keyword params in HISTOGRAM
- From: thompson(at)orpheus.nascom.nasa.gov (William Thompson)
- Date: 3 Dec 1996 22:11:16 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
- References: <329392F4.1A80@shapley.colorado.edu> <32A4769A.167EB0E7@texaco.com>
Mark Fardal wrote:
>
> Hi,
>
> I'm sure this is a stupid question, but I can't figure it out.
> Normally when you pass keyword parameters, you can pass something
> that's undefined, right? As in this example
>
(rest deleted)
Although the example you give isn't optimal, it is correct that you can pass
undefined keywords to procedures. This is because inside procedures you can
check to see if keywords are passed with either the N_ELEMENTS function or
KEYWORD_SET. Thus, passing an undefined keyword is equivalent to not passing
it at all, which is a useful thing IMHO. Unfortunately, this doesn't work with
built-in IDL routines, which I find a very inconvenient and silly restriction.
Bill Thompson