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

Home » Public Forums » archive » Re: Many procedures, what to do?
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: Many procedures, what to do? [message #23198 is a reply to message #23197] Fri, 12 January 2001 08:50 Go to previous messageGo to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
Craig Markwardt wrote:
> My thought was to collapse all these routines into one single file.
> That way it's easy to keep everything in one place, and there can be
> lots of shared documentation.
>
> The problem with that is then there are a bunch of functions like
> CMSV_RLONG CMSV_RSTRING, CMSV_RCOMM, stored in a file called
> cmsvlib.pro. IDL has no way to figure out these functions are stored
> in cmsvlib.pro, or for that matter that they are functions at all.

If you'd really want to put all these function into one libfile, then
you could create a bunch of files like cmsv_rlong.pro , cmsv_rstring.pro
, etc., all containing just the one line "@cmsvlib.pro".
The one *big* problem with this is that automatic compilation stops once
the function is encountered, leaving part of the library uncompiled.
Things will get compiled twice or more. Worse, if your "user-accessible"
functions call each other, they might get "compiled while active" and
return in the middle of execution. The only solution I see is to call an
(empty) cmsvlib procedure first thing in each function. Complicated
again...

But don't let me keep you. I desperately need some smarter save/restore
functionality!

Jaco
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Code for Dynamically creating and repositioning Buttons during IDL runtime
Next Topic: CW_Field Observation

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

Current Time: Sat Oct 11 00:13:26 PDT 2025

Total time taken to generate the page: 1.27772 seconds