[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining functions on-the-fly
Marc Schellens <firstname.lastname@example.org> wrote:
> try .comp:
> IDL> .comp [ENTER]
> - function f
> - return,42
> - end
> % Compiled module: F.
> IDL> print,f()
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.