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

Home » Public Forums » archive » _extra keyword
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: _extra keyword [message #43360 is a reply to message #43326] Thu, 07 April 2005 12:58 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Wallace writes:

> Just as a programming style note, when I'm in a routine which only
> passes extra keywords to one other routine, I always use _STRICT_EXTRA.
> That guarantees me that if I mistype something or get a wrong
> keyword, the error will be caught.
>
> The only time I don't use _STRICT_EXTRA is if I'm going to pass the
> extra arguments to at least two other routines. In this case you'd want
> the first routine to ignore the keywords associated with the second and
> vice versa. However, I only recommend doing this when it's really
> necessary. I've found that extra keywords are much easier to debug and
> maintain when you're able to use _STRICT_EXTRA.

Amen to this!

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Tough System Variable Question for the IDL Gurus
Next Topic: DICOM write: invalid character for this VR

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

Current Time: Wed Oct 08 17:23:33 PDT 2025

Total time taken to generate the page: 0.00438 seconds