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

Home » Public Forums » archive » Re: call_method
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: call_method [message #26545 is a reply to message #26479] Fri, 07 September 2001 15:03 Go to previous messageGo to previous message
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
Somewhat related, in Ray Sterner's jhuapl library (other places too, I
think), you can do
;
IDL> hismodule_a, /Help
; or
IDL> dummy=hismodule_b(/Help)
;
but you have to know before-hand that hismodule_a is a procedure and
hismodule_b is a function.

Is there any way to make this work without the user having to know
before-hand?

- Kristian Kjær, Risø Natl- Lab., Denmark

--------------------------------------------------
David Fanning wrote:
> IDL doesn't have any trouble keeping straight the difference
> between procedures and functions with the same name:
>
> PRO junk
> Print, 'In procedure junk'
> END
>
> FUNCTION junk
> Print, 'In function junk'
> END
>
> IDL> junk
> In procedure junk
> IDL> a=junk()
> In function junk
>
> Clearly, you can write your own routines to work exactly
> like Call_Method.
>
> Cheers,
> David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: structure information
Next Topic: Re: Problem combining structures

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

Current Time: Wed Dec 03 01:49:26 PST 2025

Total time taken to generate the page: 0.71725 seconds