This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CCPoster's profile picture

Funny Program

Started by CCPoster, 22 January 2013 - 10:55 AM
CCPoster #1
Posted 22 January 2013 - 11:55 AM
Hey guys, I discovered a bug in my program that turned out to be pretty funny! Please, if you put it on a freinds computer don't name it startup otherwise it'll be condemed malicious!

Program:


-snip-


Output:

Whenever that person tries to terminate it it'll say terminated, wait, and start again! The only way to stop it is to shutdown and restart

Why you can't terminate:

The event handler in computercraft doesn't have time to stop all three loops at the small distances apart the are
Edited by
Orwell #2
Posted 22 January 2013 - 12:08 PM
Please, if you put it on a friends computer don't name it startup otherwise
You know that this sentence is what makes people wanting to do that, right? :P/>

Well, it's quite a well known 'technique'.. but as it's a very short snippet, it could actually be useful for some to learn something. :)/>
CCPoster #3
Posted 22 January 2013 - 12:25 PM
thanks cloudy!
as for the learning i'll edit why this happens
Cranium #4
Posted 23 January 2013 - 12:23 PM
Not really good to wave your arms saying, "Hey everybody! If you do this, it totally breaks everything!" No need to continue anyway.