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

Home » Public Forums » archive » keyword inheritance question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
keyword inheritance question [message #87167] Mon, 13 January 2014 16:23 Go to previous message
Matthew Argall is currently offline  Matthew Argall
Messages: 286
Registered: October 2011
Senior Member
Say I am writing a program (myPro) that uses two other programs (libPro[1-2]) and want to be able to let the user know that the keyword they gave does not exist.

Ideally, I would use _STRICT_EXTRA to do this. I cannot in this case, though.

As a solution, I can put the keywords of libPro1 into the keyword list of myPro. Alternatively, I could just bite the bullet and use _EXTRA, letting unused keywords fall through quietly.

Any advice/preferences/pet peeves on this?


IDL> myPro, /Key1, /Key2

-----------------
pro libPro2, KEY2=key2
end

pro libPro1, KEY1=key1
end


pro myPro, _EXTRA=extra
libPro1, _EXTRA=extra
libPro2, _STRICT_EXTRA=extra ;Must use _EXTRA!
end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Removing (or replacing) substrings in a string array
Next Topic: Removing (or replacing) substrings in a string array

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

Current Time: Wed Oct 08 16:02:13 PDT 2025

Total time taken to generate the page: 0.00340 seconds