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

Home » Public Forums » archive » idl syntax 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: idl syntax error [message #87945 is a reply to message #87944] Wed, 05 March 2014 02:35 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mercredi 5 mars 2014 10:37:17 UTC+1, Antoine Denazelle a écrit :
> Hi,
>
> I'll make it short because I guess it will not be published...
>
> I see a strange behaviour of IDL compiler concerning keywords.
>
> First compilation points out a syntax error for this kind of line:
>
>
>
> my_var= my_func( a, min=b, max=c) (error shows at "=b")
>
>
>
> second compilation on a unix system points out no error.
>
> My program works fine, I just wonder why this behaviour. I suspect that for it to appear with no error, some other compilations are needed...
>
> Put min and max in high case doesn't change anything. min and max are maybe not the best name choices, but to change their name doesn't change the problem. (I call them like my predecessor did... )
>
>
>
> Thank you in advance for publishing, and answering.
>
> Thank you anyway, this newsgroup is a precious mine of informations!
>
>
>
> Cheers,
>
> Antoine


You should not use IDL function names as keyword name. Please use for instance:
my_var = my_func( a, amin=b, amax=c)

alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL Hard Crashing
Next Topic: Run Fortran executable in IDL

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

Current Time: Wed Oct 08 16:03:11 PDT 2025

Total time taken to generate the page: 0.00436 seconds