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

Home » Public Forums » archive » pointer to function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
pointer to function [message #85822] Wed, 11 September 2013 23:20 Go to next message
Moritz Fischer is currently offline  Moritz Fischer
Messages: 32
Registered: June 2013
Member
Hi All,

Is there any way to implement something like a pointer to a function (
as in C )?
I'd like to avoid using 'execute', but i do want something like this:

t = exectute( 'value = '+ user_written_func +'( argument )' )

And a related question:
How can I compile a file that is *not* named as the function it contains
without a dot command ( = at runtime)?
It works ok with .compile, but not with resolve_routine.

Any suggestions are apprechiated!

cheers
Re: pointer to function [message #85824 is a reply to message #85822] Thu, 12 September 2013 01:26 Go to previous message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, September 12, 2013 8:20:35 AM UTC+2, Moritz Fischer wrote:

> Is there any way to implement something like a pointer to a function (
> as in C )?
>
> I'd like to avoid using 'execute', but i do want something like this:
>
> t = exectute( 'value = '+ user_written_func +'( argument )' )

Use the CALL_* routines, CALL_FUNCTION, CALL_PROCEDURE or CALL_METHOD.

> And a related question:
>
> How can I compile a file that is *not* named as the function it contains
> without a dot command ( = at runtime)?
>
> It works ok with .compile, but not with resolve_routine.

http://cow.physics.wisc.edu/~craigm/idl/down/file_compile.pr o (the filename must end with .pro)

regards,
Lajos
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Using defroi on a zoomed image
Next Topic: Inverse hyperbolics?

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

Current Time: Wed Oct 08 13:33:41 PDT 2025

Total time taken to generate the page: 0.00437 seconds