Thread: Infinite Loops
View Single Post
  #1  
Old 08-10-2003, 12:50 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
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?
Reply With Quote