_EXTRA keywords not noticed [message #9959] |
Fri, 19 September 1997 00:00  |
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
|
|
|
Re: _extra keyword [message #43325 is a reply to message #9959] |
Fri, 01 April 2005 02:47   |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Antonio wrote:
> How Must I use this keyword?
> If I have a procedure
>
> PRO TRY, a,b,_extra=extra
> tv, c
> END
>
Perhaps you want:
PRO TRY, m, _extra=e
plot, m, _extra=e
END
and then:
m = bindgen(100,100)
TRY, m, thick=3
|
|
|
Re: _extra keyword [message #43381 is a reply to message #43325] |
Thu, 07 April 2005 02:18  |
antonioolita
Messages: 2 Registered: April 2005
|
Junior Member |
|
|
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?
Thanks
Regards,
Antonio
Antonio Santiago <d6522117@est.fib.upc.es> wrote in message news:<d2j8rd$74p$1@defalla.upc.es>...
> Antonio wrote:
>> How Must I use this keyword?
>> If I have a procedure
>>
>> PRO TRY, a,b,_extra=extra
>> tv, c
>> END
>>
>
> Perhaps you want:
>
> PRO TRY, m, _extra=e
> plot, m, _extra=e
> END
>
> and then:
>
> m = bindgen(100,100)
>
> TRY, m, thick=3
|
|
|