Login
User name:
Password:
Remember me 
Powered by BlogHarbor
Powered by BlogHarbor
Re: Tail recursive functions
by Anonymous
I think it would be very useful to extend this approach to handle not only a function calling itself as the last thing done but also a function calling any other function as the last thing done. The only change from a normal call is to provide as return address to the function we are calling our own return address (that is the address of the point after we were called by our caller). This, of course, solves also the problem of indirect (circular) recursion. Dimitre Novatchev
Post comment:
  Receive comment notifications for this article
Subject: 
Comment: 
Comment verification:

Please enter the text you see inside the graphic to post your comment:
This blog does not allow anonymous comments. Please provide your username and password along with your comment.
Login information:
Username: 
Password: 
If you would like to post contact information on your comment, please enter your information into the optional fields below:
Contact information:
URL:  example: http://yourdomain.com