Re: Who's up for breaking IDL? [message #36015 is a reply to message #35824] |
Mon, 04 August 2003 07:12   |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.199812f73a1727159896c4@news.frii.com...
> R.G. Stockwell writes:
>
>> If the operating system allows case sensitive filenames, then IDL should
>> be able to work with them.
>
> Have you thought about how this would work? If your
> filename has 16 characters in it (and probably
> includes spaces, too, sigh...), then you would
> have to check !16 different variations on the
> filename to make sure you found it. The up
> side is that you would have time to go get
> a cup of coffee every time you performed an
> interaction with the operating system. :-)
>
> Cheers,
>
> David
Yeah, it'd be a pain. What I'd do if I was IDL is strupcase all the
filenames from
the OS then search, and report an error if you ended up with more than one
filename.
You would have to do something like to maintain platform independence.
Or, just search for the name with the case given in IDL, I don't see why
that
would make any difference. Of course, I would immediately change all my
filenames to be capital variations of IDL_PROGRAM.
For instance, if you want my power spectrum program, you would type:
IDL> spectrum = Idl_PrOGRam(timeseries)
whereas my interpolation routine would be
IDL> interped = Idl_PROgRaM(timeseries)
That would work nicely with my policy of making all variable names from
different
lengths of the underline character, eg
IDL> __ = 8*4
IDL> _____ = __^2
IDL> help, _____ , __
_____ INT = 1024
__ INT = 32
:)
Cheers,
bob
PS talk about job security
|
|
|