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 #14765 is a reply to message #14679] Wed, 24 March 1999 00:00 Go to previous messageGo to previous message
Phillip & Suzanne is currently offline  Phillip & Suzanne
Messages: 31
Registered: June 1998
Member
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.

Phillip
[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: Wed Oct 08 19:16:54 PDT 2025

Total time taken to generate the page: 0.00360 seconds