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

Home » Public Forums » archive » Re: Keyword abbreviation ambiguities
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: Keyword abbreviation ambiguities [message #38928 is a reply to message #38926] Mon, 05 April 2004 01:48 Go to previous messageGo to previous message
mwvogel is currently offline  mwvogel
Messages: 9
Registered: February 2003
Junior Member
One way to overcome this would be to use the _EXTRA keyword. One of many
options would be

function testfunc, _EXTRA=e
;title=t,
;title1=t1
FOR i=0,N_TAGS(e)-1 DO $
CASE (TAG_NAMES(e))[i] OF
'TITLE' : t = e.title
'TITLE1': t1 = e.title1
ENDCASE
print, t, t1
return, 0
end

Of course error checking should be performed. And full keywords should be
used. For keyword completion, I think I once saw a post by Reimar Bauer on
that topic.

"Oliver Thilmann" <justspam03@yahoo.de> schreef in bericht
news:c992bd37.0404040539.3446cff@posting.google.com...
> Hi,
>
> the following piece of code:
>
>> pro test
>> y = testfunc( title=10, title1=20 )
>> end
>>
>> function testfunc, title=t, title1=t1
>> print, t, t1
>> return, 0
>> end
>
> results in the error message (IDL6.0):
> % Ambiguous keyword abbreviation: TITLE.
>
> I don't see any ambiguity here. May I consider this a
> (design-)bug, or is there some deeper meaning to this behaviour?
> Regards
> Oliver
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Print, 34000/340000 results 0? what ́s wrong?
Next Topic: Re: Print, 34000/340000 results 0? what ́s wrong?

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

Current Time: Tue Dec 02 08:09:23 PST 2025

Total time taken to generate the page: 0.56337 seconds