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

Home » Public Forums » archive » 8.0 name conflict
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
8.0 name conflict [message #72091] Wed, 11 August 2010 19:34
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
There is a popular procedure legend.pro in the IDL Astronomy library
( http://idlastro.gsfc.nasa.gov/ftp/pro/plot/legend.pro ) for putting
a legend on a direct graphics plot. IDL 8.0 has a *function*
LEGEND() for placing a legend on a PLOT(). While there is no
conflict between a user procedure and an *intrinsic* function with the
same name, in this case the ITTVIS function LEGEND() is written in
IDL. So which ever gets compiled first prevents the other
legend.pro from being compiled.

If I put the standard IDL library at the beginning of the !PATH then I
can't call the direct graphics LEGEND.

IDL> legend
% Compiled module: LEGEND.
% Attempt to call undefined procedure/function: 'LEGEND'.

But if I put the Astron Library ahead in the !PATH then I can't call
LEGEND()

IDL> l = legend(TARGET=[p1,p2], POSITION=[140,0.9], /DATA)
% Compiled module: LEGEND.
% Attempt to call undefined procedure/function: 'LEGEND'.

--Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: who monitoring posting in this group
Next Topic: Error messages when printing

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

Current Time: Fri Oct 10 13:26:30 PDT 2025

Total time taken to generate the page: 1.35815 seconds