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

Home » Public Forums » archive » _EXTRA keywords not noticed
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
_EXTRA keywords not noticed [message #9959] Fri, 19 September 1997 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
Another in a long line of complaints about keyword inheritance. It
seems that now (though I don't recall this always having been a
problem), a wrong keyword is not flagged.

E.g.

pro testex2,b=b
print,'test2'
return
end
pro testex, a=a,_EXTRA=e
print,'test1'
help,/st,e
testex2, _EXTRA=e
return
end

IDL> testex,b=1
test1
** Structure <82441b4>, 1 tags, length=2, refs=1:
B INT 1
test2


IDL> testex,a=1,b=1
test1
** Structure <81ad99c>, 1 tags, length=2, refs=1:
B INT 1
test2


IDL> testex,a=1,b=1,c=1
test1
** Structure <8234884>, 2 tags, length=4, refs=1:
B INT 1
C INT 1
test2


This last one should have been an error in testex2! C is not a valid
keyword to testex2, but it was silently ignored. I don't think this has
always been the case. It's a real problem if you mistype a keyword, but
aren't alerted.. you may not realize that your program didn't recieve a
keyword argument. Has anyone else noticed this?

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: matching lists
Next Topic: Re: 6.1 -> 2 bugs: $PWD and exit, status=

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

Current Time: Sun Oct 12 04:50:22 PDT 2025

Total time taken to generate the page: 1.84207 seconds