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

Home » Public Forums » archive » problem- question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
problem- question [message #76063] Thu, 19 May 2011 08:13 Go to next message
Konstantinos is currently offline  Konstantinos
Messages: 29
Registered: April 2011
Junior Member
Dear Users

I will try to explain the problems with 2 examples.

I use idl 7.1. I have download some external libraries.

Example 1.
when i try to use a program (pro or function) that call external
programs (pro or functions) i have to open all the external files and
compile them before i compile my program. Any suggestion to solve this
"problem"?


Example 2.
when i put the cursor to a program (pro or function) it gives me some
informations about this program (pro or function)
Now one of the library programs i use calls a pro. When i put the
cursor on the pro name it it gives me its description. Unfortunatelly
this pro is not in a file (eg klmn.pro) but it is within another
porgram file. I can not locate the file where the program is program
(its not a good idea to open every individual file and look for the
pro because the structure is chaotic). I cant run my program because
something is not compiled. Any idea how can i locate the file that
the program is in it? IF not any suggestion how can i compile it.

All the programs from the external libraries i use are in the IDL PATH
( Window -> Preferences. -> IDL -> path )

THANK you in advance for your help.

PLEASE forgive my poor english
Re: problem- question [message #76196 is a reply to message #76063] Thu, 19 May 2011 13:22 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paulo Penteado writes:

> That is the appropriate, when the only routine intended to be public
> is the last one in the file (with the same name as the file).

I'm not sure "public" has much to do with it. It is
certainly OK to have multiple program units in a file,
if all but the last program unit are utility routines
for the last program unit and THEY ARE NAMED AS SUCH.

When they are given willy-nilly names, even if they
are utility routines, they become essentially
impossible to find if there are a lot of them.

I am *totally* sympathetic to Konstantinos lament.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: problem- question [message #76197 is a reply to message #76063] Thu, 19 May 2011 13:10 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 19, 4:29 pm, Konstantinos <moonlightsha...@hotmail.gr> wrote:
> And furthermore their organization is more than chaotic... (eg. a pro
> file with a lot of functions and pro that calls other functions and
> pro and only god knows where on "disk" are they...How difficult is it
> to make separate files for each pro or function??

That is the appropriate, when the only routine intended to be public
is the last one in the file (with the same name as the file).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: problem- question
Next Topic: New Object Method Invocation Syntax Brokenness

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

Current Time: Wed Oct 08 17:32:35 PDT 2025

Total time taken to generate the page: 0.00481 seconds