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

Home » Public Forums » archive » Re: defining functions on-the-fly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: defining functions on-the-fly [message #25208 is a reply to message #25126] Wed, 23 May 2001 14:12 Go to previous message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: warping continents to magnetic coordinates
Next Topic: defining functions on-the-fly

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

Current Time: Wed Oct 08 17:34:50 PDT 2025

Total time taken to generate the page: 0.00441 seconds