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

Home » Public Forums » archive » programmatically compile a procedure without a .pro extension
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
programmatically compile a procedure without a .pro extension [message #85662] Sat, 24 August 2013 18:10 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
Does anyone know if there is a way to programmatically compile a procedure that does not have a .pro extension? For example, if I have a file named a1.bak containing the following 4 lines:

pro a1
print,'Inside procedure a1'
return
end

then the user can successfully compile this using

IDL> .run a1.bak

But the tools to programmatically compile a file don't work in this case, i.e.

IDL> resolve_routine,'a1.bak'
or
IDL> file_compile,'a1.bak'

where file_compile is from Craig Markwardt's library
http://www.physics.wisc.edu/~craigm/idl/down/file_compile.pr o

It is reasonable to ask why I would not simply use a .pro extension. But the answer is fairly complicated so I don't (yet) want to distract from the straightforward question above. Thanks, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Does Java polymorphism not work via the IDL Java Bridge?
Next Topic: x/y margin from map_set to plot position and cgimage

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

Current Time: Fri Oct 10 01:24:40 PDT 2025

Total time taken to generate the page: 0.47898 seconds