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

Home » Public Forums » archive » library or 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 or one file [message #35012 is a reply to message #34923] Mon, 05 May 2003 07:04 Go to previous messageGo to previous message
tam is currently offline  tam
Messages: 48
Registered: February 2000
Member
Reimar Bauer wrote:
> Hi,
>
....

> Yesterday I found a compromise.
>
>
> for example
>
> helpon has two routines
>
> pro helpon_info
> end
> pro helpon
> end
>
>
> Both routines are defined in the same file.
>
>
> To simmulate them as separate files I set two links
>
> ln -s ./helpon.pro ../links/helpon.pro
> ln -s ./helpon.pro ../links/helpon_info.pro
>
>
...


One caveat, wouldn't this require that the user cannot call any
routines in the library that uses a routine that
comes later in the library? I.e.,

pro f1,x
if (...) then f2,x
end
pro f2,x
if (...) then f1,x
end

(linked as f1.pro and f2.pro)

would work fine if the user first calls f2.
If the user calls f1 first, then initally IDL
doesn't compile f2. When the user does call f2,
then IDL will try to compile the file again and
give an error that the user is attempting to recompile
an active module (since it recompiles f1 as well).

I find that this kind of co-dependency among routines
is pretty common though not usually quite as obvious
as what you have above.

Tom McGlynn
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [question] on adding strings when reading file names
Next Topic: 2D scatter plot with density contour line,

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

Current Time: Wed Oct 08 18:43:22 PDT 2025

Total time taken to generate the page: 0.00404 seconds