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

Home » Public Forums » archive » Re: calling a function in herself
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: calling a function in herself [message #20881] Mon, 31 July 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Martin Schultz (martin.schultz@dkrz.de) writes:

> Here is a really simpl eexample:
> --------------------------------
> function recursive, count
> print,'count = ',count
> if count lt 10 then count = recursive(count+1)
> return, count
> end
>
> ; main
> print,'End result = ',recursive(0L)
> end
>
> -----------------------------------
> save as recursive.pro and start this with .r recursive, and it will run.
> In you rcase,
> you might need to include a FORWARD_FUNCTION statement as the first line
> in h_wahl. That
> shoul dhelp.

What has happened to your keyboard, Martin!?
Better get the ol' WD40 out. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: xinteranimate
Next Topic: Re: Strange PRINTER Coordinates

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

Current Time: Fri Oct 10 11:57:50 PDT 2025

Total time taken to generate the page: 0.71802 seconds