[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defining functions on-the-fly



Marc Schellens <m_schellens@hotmail.com> wrote:
> try .comp:
> 
> IDL> .comp [ENTER]
> - function f
> - return,42
> - end
> % Compiled module: F.
> IDL> print,f()
>       42
> IDL> 

No, this doesn't work for what I have in mind - .comp is an executive command
and so can only be used interactively. You can't use .comp in a procedure.  I
want *my software* to be able to define functions on the fly, not myself.  So
it looks like the best solution really is writing out a new .PRO file to the
disk and compiling that. 

 - Marshall