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

Home » Public Forums » archive » capital letters in file names?
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: capital letters in file names? [message #56864 is a reply to message #56789] Sun, 18 November 2007 09:39 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
hradilv writes:

> If you are using a *nix OS and you do, say, .comp test, IDL will look
> for test.pro which must contain a procedure or function called
> "test" (same capitalization). If the file name is Test.pro and the
> procedure in it is "test", then you call "Test", IDL will compile
> Test.pro creating a procedure called "test", but it won't be able to
> find "Test"
>
> Clear as mud?

And possibly misleading, as well. :-)

> If you are using a *nix OS and you do, say, .comp test, IDL will look
> for test.pro which must contain a procedure or function called
> "test" (same capitalization).

The capitalization of the procedure or function is
entirely irrelevant. IDL is case insensitive. The
name of the file should be spelled with lowercase
letters if you expect IDL to find it automatically
(as you should). If you always compile your procedures
and functions before you use them, then (really!) you
should be using another language than IDL, as there is
ABSOLUTELY no reason to do this.

You should even name your Windows files with lowercase
letters, IMHO, since you never know when you might find
yourself loaning them to someone with a machine different
from yours. This can cause an enormous amount of heartache
before you figure out what the problem is.

http://www.dfanning.com/tips/namefiles.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Is it possible to draw 2 plots in the same IDLgrPLot object ?
Next Topic: Using IDL shell in crontab

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

Current Time: Wed Dec 03 12:37:30 PST 2025

Total time taken to generate the page: 0.00318 seconds