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

Home » Public Forums » archive » How to link IDL files
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: How to link IDL files [message #14753 is a reply to message #14679] Thu, 25 March 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Phillip David (pdavid@earthling.net) writes:

> David Fanning (davidf@dfanning.com) picked a few nits, but left himself open
> for some nit picking himself... He wrote:
>>
>> And to just make this absolutely crystal clear, the program
>> module that has the same name as the file should be the
>> LAST program module in the file. If it is not, you will
>> NEVER get automatic compilation (which has got to be one
>> of the best features of IDL) to work correctly. There
>> should really never be any reason at all to hand compile
>> programs before they are used if your files are structured
>> and named correctly.
>
> However, it may be appropriate to write test drivers for your programs, and in
> fact, I recommend this procedure highly. In this case, the test driver gets
> put AFTER the program matching the name of the file. When you want to test
> changes, you compile the file, and the test driver gets compiled as well.
> When you are simply trying to use the program, though, the test driver doesn't
> get compiled. This keeps the namespace from getting cluttered, and even
> occasionally prevents an error by calling a routine named the same as your
> test driver. I know I use the name "test" frequently, and wouldn't want my
> test driver to get replaced by another test driver for another file.

Now, honestly, Phillip. This is just too sophisticated for
the usual riff-raft and falls under the header of giving away
all our secrets. I am strongly in favor of banning this kind
of posting.

Cheers,

David

P.S. You know, if more people wrote drivers for their
programs, I'll bet more people would use them. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 3D imaging/rotation
Next Topic: Can't position modal compound widget (such as cw_form)

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

Current Time: Fri Oct 10 13:43:22 PDT 2025

Total time taken to generate the page: 1.35893 seconds