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 #55804 is a reply to message #55801] Wed, 12 September 2007 08:43 Go to previous messageGo to previous message
Foldy Lajos is currently offline  Foldy Lajos
Messages: 268
Registered: October 2001
Senior Member
On Wed, 12 Sep 2007, David Fanning wrote:

> Conor writes:
>
>> 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.
>
> What algorithm would you use to do that? How could
> you do it unambiguously?
>
> Cheers,
>
> David
>

FL does exactly this. The interpreter searches for an exact match first,
and looks for abbreviations only if an exact match can not be found.

Eg. let's have a simple procedure:

pro INT, long=l32, long64=l64
end

Now INT can be called succesfully with keywords LONG, LONG6 or LONG64,
only L, LO and LON will fail.

regards,
lajos
[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: Wed Oct 15 15:28:39 PDT 2025

Total time taken to generate the page: 0.88145 seconds