View Single Post
Old Jul 26th, 2007, 8:52 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
No, the function doesn't terminate,
Well, yes it does, unless you're not worth a chit at programming it. Ask IR. Furthermore, I have an image posted in the last couple of weeks showing what happens if it doesn't terminate.

Any recursive function needs a condition that backs it out, eventually, to the original call.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote