by malisper · 12y ago · 0 comments
Not necessarily. In the common case of a procedure calling itself a loop does wind up being equivalent. OTOH with mutually recursive procedures (two or more procedures which call each other), there is no straightforward way to convert the tail calls into a loop.
while (condition)
{
a();
if (!condition)
break;
b();
}