Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recursive Procedures

Status
Not open for further replies.

chechu

Technical User
Feb 10, 2003
1
ES
Hi all, could I use a recursive procedure with Vignette StoryServer V5 5.6?....
Please, answer my question.... Thanks
 
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
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top