Discussion Board
Go to the previous messageGo to the following message
Current Forum: Homework 3 Forum
Date: Thu Sep 27 2001 4:16 pm
Author: Cipriani, Jason A. <jac4@andrew.cmu.edu>
Subject: Re: recursive

thanks, matt. i never knew "tail recursion" was special. but let me clarify my little example:

public final class ClassX {
 
private ClassX child;
 
public void FunctionX () {
...
child.FunctionX();
...
};
 
};


this is what i was asking about. see, "this.child" is the same class as "this", and it's implementation of FunctionX is the same.

it doesn't seem like "recursion" to me because it isn't really calling itself... well, it kind of is, but its calling an implementation of itself in another instance of the same class.

the biggest reason i was wondering about this is just for commenting code. i don't want to use words like "recursive" if i should be saying something else. plus, its just out of curiosity.

jason
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
recursive      Cipriani, Jason A.      Thu Sep 27 2001 9:55 am       
Re: recursive      White, David      Thu Sep 27 2001 12:08 pm       
Re: recursive      Yuen, John      Thu Sep 27 2001 12:15 pm       
Re: recursive      Danish, Matt R.      Thu Sep 27 2001 12:42 pm       
Re: recursive      Cipriani, Jason A.      Thu Sep 27 2001 4:16 pm       
Re: recursive      Danish, Matt R.      Thu Sep 27 2001 7:38 pm       
Re: recursive      Lee, Peter      Fri Sep 28 2001 9:44 am       
Re: recursive      Danish, Matt R.      Fri Sep 28 2001 11:35 am       
Re: recursive      Lee, Peter      Fri Sep 28 2001 12:43 pm       

Back to previous screen