Recursion limit?

enonod

Well-Known Member
Licensed User
Longtime User
What is a sensible stack limit for recursion please?
 

Bas Hamstra

Member
Licensed User
Longtime User
Why limit?

I use a game-tree searching recursive algo and have had no problems recursively searching trees with millions of nodes. What would you like to do? IMO recursion works like normal in B4A.

Bas
 
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
Thank you both.
I don't actually have a problem or error, I just wanted to be aware of it if there was a limit before going any deeper.
 
Upvote 0

derez

Expert
Licensed User
Longtime User
Recursion is limited by memory, and the number of recursions depends on the memory used for each.
 
Upvote 0

enonod

Well-Known Member
Licensed User
Longtime User
Thank you derez
 
Upvote 0
Top