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

Home » Public Forums » archive » passing functions as arguments in IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
passing functions as arguments in IDL? [message #18725] Tue, 01 February 2000 00:00 Go to previous message
Rick Baer is currently offline  Rick Baer
Messages: 6
Registered: November 1999
Junior Member
Is there any way to pass functions as arguments in IDL? I would
like to be able to do something like this:

function f1, x
return, x*x
end


pro tf1, func, arg
return, func(arg)
end

IDL> print, tf1, f1, 4
16

Thanks!

Rick Baer
Hewlett-Packard Laboratories
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Output to dxf?
Next Topic: point_lun

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

Current Time: Thu Oct 09 15:01:34 PDT 2025

Total time taken to generate the page: 1.99892 seconds