Game Development Community

TorqueScript Recursion

by William Todd Scott · in Torque Game Engine Advanced · 07/08/2007 (2:42 pm) · 2 replies

Hi all,

I wanted to verify how recursion is working in Torque script.

It appears that tail recursion works as expected.

However, if I try to make a recursive call in the middle of a function, the recursive call does not actually occur until the end of the function. Is that correct?

Thanks
Todd

#1
07/08/2007 (3:13 pm)
Please disregard.

The recursion is working as expected, I misinterpreted some out of order print statements.

Thanks
Todd
#2
07/13/2007 (6:27 am)
Recursivity work but there are limitations read this post about it : (don't know if this is valid for TGEA as well).

www.garagegames.com/mg/forums/result.thread.php?qt=22288