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

Home » Public Forums » archive » Re: Automatic Compilation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Automatic Compilation [message #42952] Tue, 08 March 2005 09:17 Go to next message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
>> Hi,
>>
>> I can confirm this and also add that you shouldn't use numbers in your
>> filenames, otherwise, they will not be compiled automatically.
>
>
> Huh? I use numbers all the time in my file names and they compile
> automatically.
>

IDL allows numbers to be used in routine names as long as the first
character is not a number. These get compiled automatically just like
ones without numbers. If you try to use a routine that starts with a
number, you'll get a syntax error.

-Mike
Re: Automatic Compilation [message #42953 is a reply to message #42952] Tue, 08 March 2005 08:57 Go to previous messageGo to next message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <1110298745.482208@seven.kulnet.kuleuven.ac.be>,
Evelien Vanhollebeke <evelien@ster.kuleuven.ac.be> wrote:

> Hi,
>
> I can confirm this and also add that you shouldn't use numbers in your
> filenames, otherwise, they will not be compiled automatically.

Huh? I use numbers all the time in my file names and they compile
automatically.

Ken Bowman
Re: Automatic Compilation [message #42955 is a reply to message #42953] Tue, 08 March 2005 08:19 Go to previous messageGo to next message
Evelien Vanhollebeke is currently offline  Evelien Vanhollebeke
Messages: 2
Registered: December 2004
Junior Member
Hi,

I can confirm this and also add that you shouldn't use numbers in your
filenames, otherwise, they will not be compiled automatically.

Cheers,
Evelien

Nuno Oliveira wrote:
> Thanks for all the answers. I took a few hours to see what was going on...
>
> It seems I finally got the point. This seems to be a case sensitive
> trick. Let's see, if I can explain (and maybe someone can confirm this -
> notice I'm working in Linux )
>
> If you have already add "your" working directory do idl path has I did
> try do save this code as testing_routine.pro
>
> PRO testing_routine
> print, 'testing for running without explicit compilation '
> END
>
> IDL> testing_routine
> % Compiled module: TESTING_ROUTINE.
> testing for running without explicit compilation
>
>
> and then try to save this other code as Testing_Routine.pro
> (it is needed to reset_session before trying to call this other routine)
>
> PRO Testing_Routine
> print, 'testing for running without explicit compilation '
> END
>
> IDL> Testing_Routine
> % Attempt to call undefined procedure/function: 'TESTING_ROUTINE'.
> % Execution halted at: $MAIN$
>
> and for this last case you will see that idl is attempt to call.
>
> Quite funny, ins't it? Can someone please confirm this? :)
>


--
Evelien Vanhollebeke
Instituut voor Sterrenkunde
http://www.ster.kuleuven.ac.be
Re: Automatic Compilation [message #42956 is a reply to message #42955] Tue, 08 March 2005 08:26 Go to previous messageGo to next message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Can someone please confirm this? :)

From the IDL Docs:
"When you enter the name of an uncompiled user-defined routine at the
command line or call the routine from another routine, IDL searches the
current directory for filename.pro, then filename.sav where filename is
the name of the specified routine. If no file is found in the current
directory, IDL searches each directory specified by !PATH."


The important point here is that IDL always searches for file names that
are in lower case.

-Mike
Re: Automatic Compilation [message #43044 is a reply to message #42952] Tue, 08 March 2005 16:17 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <112rnhltohs0u8c@corp.supernews.com>,
Michael Wallace <mwallace.no.spam@no.spam.swri.edu.invalid> wrote:

>>> Hi,
>>>
>>> I can confirm this and also add that you shouldn't use numbers in your
>>> filenames, otherwise, they will not be compiled automatically.
>>
>>
>> Huh? I use numbers all the time in my file names and they compile
>> automatically.
>>
>
> IDL allows numbers to be used in routine names as long as the first
> character is not a number. These get compiled automatically just like
> ones without numbers. If you try to use a routine that starts with a
> number, you'll get a syntax error.
>
> -Mike

Well, yeah, just like variable names, but that's not what he said.

Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Automatic Compilation
Next Topic: idlmeteo

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

Current Time: Wed Oct 08 11:51:08 PDT 2025

Total time taken to generate the page: 0.01322 seconds