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

Home » Public Forums » archive » Re: Keyword checking
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Keyword checking [message #31007 is a reply to message #31006] Wed, 29 May 2002 08:22 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
William Thompson wrote:
[stuff deleted]
> I agree. I can't think of any legitimate reason why one would want to generate
> an error message if an undefined keyword was passed.
[stuff deleted]

As David points out, there are ways to do this sort of checking. However
I must agree with William. In my mind, the whole point of keywords is
that they are *optional*. If a valid defined variable is not passed for
a keyword, then the called routine must take some default action. If the
keyword is important enough that the developer thinks argument checking
wizardry is necessary, then perhaps it should be a positional parameter
instead.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: accessing reverse_indices
Next Topic: Re: color in widgets

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

Current Time: Tue Apr 14 07:40:00 PDT 2026

Total time taken to generate the page: 1.88527 seconds