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
library or one file [message #34923] Sun, 04 May 2003 02:26 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Hi,

I know this was discussed in the past. But I got yesterday a new idea.
Sometimes if you like to give someone a routine it is easier to give him/her
one file where all the routines are collected in one file instead of a
whole library. But if you like to work with the subroutines this is bad
because always the whole file must be compiled and you are not able to call
them directly.

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


The internal routine names could be resolved by the routine


http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/get_internal_source_names.tar.gz
or as idl 5.x bninary
http://www.fz-juelich.de/icg/icg1/idl_icglib/idl_source/idl_ html/dbase/download/get_internal_source_names.sav


IDL> print, get_internal_source_names(file_which('helpon.pro'))
helpon_info helpon


with the file_link routine the links could be set.


regards

Reimar


--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
[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 16:50:14 PDT 2025

Total time taken to generate the page: 0.00443 seconds