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


Hi there Don,


A week isnt that long on this list, but if you were gone a month im
sure we all would have missed you.

Calling a function from within itself is called 'recursion' and was
an important part of programming...not sure if it is anymore, but
some things are just neater to do using this kind of programming.
It also means the execution not only depends on the instructions in the
source code but also depends on the data at run time.

I think Rob said one time that Euphoria uses a dynamic stack that
can grow as need arises, so that even with a large number of
recursions deeply nested we wont run out of stack space.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

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

Search



Quick Links

User menu

Not signed in.

Misc Menu