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

Home » Public Forums » archive » Re: check for duplicate routine names?
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: check for duplicate routine names? [message #23258 is a reply to message #23257] Fri, 19 January 2001 07:10 Go to previous messageGo to previous message
dominik is currently offline  dominik
Messages: 47
Registered: June 2000
Member
>>>> > "MWA" == Michael W Asten <masten@mail.earth.monash.edu.au> writes:

MWA> It is a stupid error to have a two routines of the same name
MWA> DoitNow.pro , in two different library files MyLib1.pro and MyLib2.pro
MWA> .
MWA> But your correspondent is sometimes stupid. The consequence of course
MWA> is that the second compilation (of MyLib2.pro ) over-rides the first (of
MWA> MyLib1.pro) , so whatever was intended by maintenance of the code in
MWA> MyLib1.pro does not execute. Or worse, when the two libs are compiled
MWA> in different sequences, results become unpredictable.

MWA> IDL does not appear to give any warning of the compilation of a routine
MWA> of same name as one already compiled. Has anyone any ideas on how such
MWA> errors can be trapped ?

If you are using Emacs with IDLWAVE, it has tools to catch such
cases. See the manual and a recent thread where JD explains how to
use it for detecting load-path shadows.

- Carsten

--
Carsten Dominik <dominik@astro.uva.nl> \ _ /
Sterrenkundig Instituut "Anton Pannekoek" |X| _
Kruislaan 403; NL-1098 SJ Amsterdam /| |\ _ _ _/ \
phone +31 (20) 525-7477; FAX +31 (20) 525-7484 __|o|___/ ~~ \___/ ~~~
[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
Read Message
Previous Topic: IDL and basic stable! widgets [Example program??]
Next Topic: Re: Printf and line breaks

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

Current Time: Sun Oct 12 04:46:35 PDT 2025

Total time taken to generate the page: 0.96003 seconds