I've not worked with StoryServer yet, so I can't comment on any limitations that it might impose. But Tcl has no problem with recursive procedures. Tcl does have a built-in limit on the depth of recursion (to help prevent infinite loops from attempting to allocate all your memory), but it's rarely an issue in reasonable programs. I just put together a test case with a recursive procedure that used a couple of local variables with integer values. It ran to 685 levels of recursion before giving the error message:
Code:
too many nested calls to Tcl_EvalObj (infinite loop?)
That's enough stack levels for most programs... - Ken Jones, President
Avia Training and Consulting
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.