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

Home » Public Forums » archive » 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
defining functions on-the-fly [message #25130] Tue, 22 May 2001 15:30 Go to previous message
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
I would like to be able to define some functions on-the-fly in IDL.
In other words, my program does some stuff, and computes that the desired
function is (some arbitrary function, not necessarily a polynomial).
I would then like to define the equivalent of
FUNCTION myfunction, x,y
return, <my arbitrary expression in (x,y)>
END
and then be able to call myfunction(x,y).

Is there any easier way to do this than actually writing out a
myfunction.pro file to disk and compiling that? That way would certainly
work, but it strikes me as inelegant... At first I thought I could do this
with the EXECUTE statement, but you can't define functions using that.

- Marshall
[Message index]
 
Read Message
Read Message
Previous Topic: Re: defining functions on-the-fly
Next Topic: bitwise operators in IDL?

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

Current Time: Fri Oct 10 06:33:17 PDT 2025

Total time taken to generate the page: 0.63828 seconds