
08-10-2003, 12:50 PM
|
|
Mister 1,000,000
|
 |
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
|
|
Infinite Loops
|
Wouln't it be fun to check out how many infinite loops there are? I found... four. The Timeout loop.
if (playerenters||timeout){
//stuff
timeout = 1;
}
the for loop
for (i=1;i>0;i++){
//stuff;
sleep 1;
}
the while loop
while (1=1){
//stuff
sleep 1;
}
the recursive function
loop();
function loop(){
//stuff
sleep 1;
loop();
}
i haven't tested above one =\ |
__________________
Quote:
|
Originally Posted by Lance
stefan is satan
|
I am the best.
[URL removed]Music or aural pollution?
|
|
|
|