infinitely recursive functions

created by JustSomeGuy
(thing) by JustSomeGuy (6.2 y) (print)   ?   (I like it!) Tue Jun 13 2000 at 6:40:44
Functions which, when called with the right (or the wrong) initial set of parameters, call themselves, causing themselves to call themselves again, and so on ad infinitum. The simplest example would be, in C++:
void foo()
{
    foo();  //Calls foo, which calls foo, which calls foo...
}
Given finite computational speeds and call stack sizes, functions which try to recurse forever are generally considered (at least in computer science circles) to be a Bad Thing.
Dekaritae: Well, it's infinitely recursive in theory...
(idea) by Dekaritae (5 y) (print)   ?   (I like it!) Tue Jun 13 2000 at 6:54:51
Speaking from a purely technical viewpoint, don't the statements of the limitations of computing power and finite time of existence mean that the function is not an infinitely recursive function, but merely a recursive one? Seeing as the function could not practically go on forever.
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.