lol, i made a never ending loop with arrays
View Single Post
01-21-2008, 01:10 PM
Join Date: Oct 2007
Location: Manchester, UK
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)
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia