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

Home » Public Forums » archive » another IDL oddity
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
another IDL oddity [message #65174] Tue, 17 February 2009 07:57 Go to previous message
Bringfried Stecklum is currently offline  Bringfried Stecklum
Messages: 75
Registered: January 1996
Member
Folks, here is another one I recently stumbled upon. How about that

more ~/IDL/my_procedure.pro
pro my_procedure,arg
print,arg
end

within IDL
IDL> my_procedure,'Hello.world'
% Compiled module: MY_PROCEDURE.
Hello.world
IDL> exit

from bash
>echo my_procedure,'Hello.world'|idl
IDL Version 6.4 (linux x86_64 m64). (c) 2007, ITT Visual Information Solutions
Installation number: 12207.
Licensed for use by: TLS Tautenburg

% Compiled module: LOADCT.
% Compiled module: FILEPATH.
% Compiled module: PATH_SEP.
% Expression must be a structure in this context: HELLO.
% Execution halted at: $MAIN$

This is just an example. In the real case, the argument is a file name with a
suffix which IDL refuses to treat. The strange thing is that the argument is
checked before the compilation of the procedure. The latter happens indeed

>echo my_procedure|idl
IDL Version 6.4 (linux x86_64 m64). (c) 2007, ITT Visual Information Solutions
Installation number: 12207.
Licensed for use by: TLS Tautenburg

% Compiled module: LOADCT.
% Compiled module: FILEPATH.
% Compiled module: PATH_SEP.
% Compiled module: MY_PROCEDURE.
% PRINT: Variable is undefined: ARG.
% Execution halted at: MY_PROCEDURE 2 /home/stecklum/IDL/my_procedure.pro
% $MAIN$

Any hints?

Regards, Bringfried
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: xyouts: define decimal places of variable
Next Topic: Re: How to simplify or mesh a IDLgrLegend Obj ?

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

Current Time: Sat Oct 11 00:31:37 PDT 2025

Total time taken to generate the page: 1.19949 seconds