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 #43379 is a reply to message #43326] Thu, 07 April 2005 05:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Antonio writes:

> Yes I think that's I want but....
> but in the procedure that I try to use this keyword seems not to run.
> The compiler don't made error message but there's no evident effect of
> this keyword in my plot (a map).
> More simply:
> if I have a _extra keyword in a procedure how can I use it?
> I can use EVERY other keyword of the procedure associated to them?

The problem (and beauty) of _EXTRA is that unknown
keywords are silently ignored by the procedures that
use this mechanism. In practice, this means that if you
misspell a keyword, no one ever complains, but the keyword
has no effect, either. I strongly suspect that is your
problem.

One way to handle this problem is to use the _STRICT_EXTRA
keyword (in place of _EXTRA) on the last procedure or function
in the keyword inheritance chain. The _STRICT_EXTRA *will*
complain if it gets a keyword it doesn't understand, so you
can use this to trap for misspelled keywords.

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: Fri Oct 10 12:51:01 PDT 2025

Total time taken to generate the page: 4.31697 seconds