Re: _EXTRA keywords not noticed [message #9952 is a reply to message #9935] |
Mon, 22 September 1997 00:00  |
Mirko Vukovic
Messages: 124 Registered: January 1996
|
Senior Member |
|
|
J.D. Smith wrote:
>
> 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
i don't see a problem. if c had made it into testex2, yes, but e in
testex cannot know what routines it will be passed on to.
--
Mirko Vukovic, Ph.D 3075 Hansen Way M/S K-109
Novellus Systems Palo Alto, CA, 94304
415/424-4969 mirko.vukovic@varian.grc.com
|
|
|