Re: How can I STOP a cursed recursion?

new topic     » goto parent     » topic index » view thread      » older message » newer message

don cole wrote:
> 
> Hello everybody,
> 
> My computer has been broken for about a week. I guess nobody missed me.
> I've been catching up on my Euforum reading. I've seen a lot of talk about
> the code,
> 
> procedure Help()
>   help()
> end procedure
> 
> If this code is not illegal it should be. How can you call a procedure from
> within this procedure? I find this code very disturbing as it goes against all
> the rules. One should be able to call help() from any number of places besides
> help it self. And lastly I don't see any point of doing that way.
> 
> Don Cole


Don,

Why do you think I called it "cursed" recursion, heh heh!

But in fact some things can be done "more elegently" by recursion
(or with much fewer lines of code), and I think some things may be nearly
impossible (?) to do without recursion.  I definatly wouldn't have used it
if I had thought I could use some other method instead!!

Here is an Introduction to Recursion that Juergen provided:
 <http://personal.vsnl.com/erwin/recintro.htm>.

btw, people were kind enough to not even mention my error in my example,
& some just corrected it.
should be:

procedure Help()
   Help()  -- since help() would be another procedure entirely
 end procedure 


and of course, THIS example would just run forever or until it crashed the
system or something, which was in fact my original problem, making it STOP! 

Take care,
Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu