01-21-2008, 01:10 PM
|
#11 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
Quote:
|
Infinite loops from recursive functions/methods can be a particularly nasty trap to fall into!
|
yep, idd it is lol.
you need to be VERY careful with recursion if you know how functions work then it should be apparent why. To cut a very long story short you risk crashing stuff as you are repeatedly calling the function thus producing function call overhead for each funcion being called, thus using up alot of memory.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|