Re: Ambiguous keyword abbreviation error [message #55809 is a reply to message #55808] |
Wed, 12 September 2007 07:08   |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
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
|
|
|