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

Home » Public Forums » archive » Re: library help -- multiple procedures in one file
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: library help -- multiple procedures in one file [message #30958 is a reply to message #30957] Fri, 24 May 2002 09:16 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Chris O'Dell wrote:
>
> This question is mostly aimed at people who build libraries for public
> use (David, Craig, etc). I am putting together a lot of the little
> useful routines I have written as a grad student into a library, and was
> wondering, should I juse make EVERY procedure/function have its own
> file? In PASCAL, I was a big proponent of nested functions;
> functions/procedures really ONLY used by one other procedure or
> function. But in IDL, those functions aren't compiled on the fly and
> you have to open the darn function file and compile them all every time
> you start idlde. Is there any way around this?
>
> Cheers,
> Chris

My preferences:

- One function or procedure per source file,
- All lower case file names,
- UNIX formatting (CR/LF) for newlines,
- Compressed tar files for UNIX users,
- ZIP files for Win/Mac users,
- Available via HTTP.

The only exception to the one function or procedure per file rule would
be if you have several tightly coupled routines that naturally belong
together, such as the definition of an object and it's methods.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: a question about ENVI menu and source file
Next Topic: Re: a question about ENVI menu and source file

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

Current Time: Tue Dec 02 13:07:06 PST 2025

Total time taken to generate the page: 0.17263 seconds