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

Home » Public Forums » archive » 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
check for duplicate routine names? [message #23264] Thu, 18 January 2001 23:56
Michael Asten is currently offline  Michael Asten
Messages: 53
Registered: March 1999
Member
It is a stupid error to have a two routines of the same name
DoitNow.pro , in two different library files MyLib1.pro and MyLib2.pro
.
But your correspondent is sometimes stupid. The consequence of course
is that the second compilation (of MyLib2.pro ) over-rides the first (of
MyLib1.pro) , so whatever was intended by maintenance of the code in
MyLib1.pro does not execute. Or worse, when the two libs are compiled
in different sequences, results become unpredictable.

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

I suggest that at least in an IDL Project, the command "Compile all
routines" should include such checking as a debugging tool. Or am I
merely shifting blame for my stupidity onto the compiler? (you know how
it is when you bang your head the second time, on the same kitchen
cupboard door?).

Regards,
Michael Asten
[Message index]
 
Read Message
Previous Topic: Re: IDLgrAxis object with /LOG keyword
Next Topic: IDL vs Matlab for Visualization

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

Current Time: Wed Oct 08 17:46:23 PDT 2025

Total time taken to generate the page: 0.00405 seconds