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

Home » Public Forums » archive » Re: Ambiguous keyword abbreviation error
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: Ambiguous keyword abbreviation error [message #55801 is a reply to message #55800] Wed, 12 September 2007 09:20 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Conor wrote:
> This bug always annoys me (well, I guess it's a feature, not a bug,
> but that's how I see it). For instance, in a lot of my programs I
> like to use the keyword /s for silent. Unfortunately, since it is a
> one-letter keyword, once I've declared it I can't use anyother
> keywords that start with the letter 's'. I find this to be highly
> irritating. You would think that since the keyword I'm using exactly
> matches an actual keyword, IDL could figure out that I'm referencing
> that keyword, rather than using an abbreviation. Oh well. At least
> when you get this error, you know exactly what the problem is.

Interesting. I use /q for quiet. Not many words in my field start with "q" (although I
thought of about 5 whilst typing that sentence.... :o)

cheers,

paulv

>
> On Sep 12, 10:08 am, Paul van Delst <Paul.vanDe...@noaa.gov> wrote:
>> jkj wrote:
>>>> I was under the
>>>> mistaken notion that these were like named variables, so as long as I had
>>>> unique names for each one I was good to go.
>>> pro my_procedures, col=col, color=color
>>> I'm thinking "column" when I use col=col and in parts of the code
>>> where "color" is not also a keyword "col" works just fine, but as soon
>>> as I have "col" as the beginning of another keyword IDL cannot tell
>>> the two apart (because IDL does not require you to use the entire
>>> keyword, only enough of it that it can be uniquely determined)... so I
>>> have to at least append 1 letter (other than 'o') to "col" and use
>>> something like:
>>> pro my_procedures, coln=coln, color=color
>> This is diverging OT into more of a style thing, but why not bite the bullet and punch out
>> the extra two characters for the sake of clarity:
>>
>> pro my_procedures, column=column, color=color
>>
>> ?
>>
>> cheers,
>>
>> paulv
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using ENVI with IDLWAVE
Next Topic: Re: ENVI File Question

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

Current Time: Fri Oct 10 19:06:39 PDT 2025

Total time taken to generate the page: 1.35905 seconds