That wouldn't help him cancelling a program during the turtle's actions…He would need to use coroutines/multitasking.
I would encourage you to re-read the OP. Nowhere in it did he imply he wanted to stop the turtle mid-action. Furthermore, "He would need to use coroutines/multitasking" is a very wrong answer. The parallel API is all that is required*. As the easiest option, it should be mentioned first. Seriously. Don't try to scare people away!
*Yes, I know how the parallel API works and it does use coroutines. However, they aren't exposed to the user so they shouldn't be mentioned, unless the problem in question cannot be solved without using them or the solution would be more complicated than using coroutines.
How silly do you think I am if I am trying to scare him away??? :blink:/>
And why did you just contradict yourself?!
Furthermore, "He would need to use coroutines/multitasking" is a very wrong answer.
*Yes, I know how the parallel API works and it does use coroutines.
Even if he DID use the Parallel API
IT IS STILL USING COROUTINES therefore it is not a wrong answer at all!
Saying 'he would need to use coroutines' means he would need to use coroutines, in whatever form that may be. I feel like you are being very silly…
Furthermore, if he wants to learn how it actually works and do it properly (the parallel API is quite limited compared to using raw coroutines yourself) he should look at using coroutines.
They aren't hard.
Half the fun is learning about new things in programming. Whenever you have got something working after an hour or so of trying it you can't help but want to show people your new masterpiece :D/>
@YourStatementAboutCoroutinesShouldStayHidden
1. Why should they have to stay hidden? So what if you can't see them behind the parallel API? You can't see what happens when you use drawBox() in my djOS, doesn't mean you shouldn't know what they are…
2. It's not like coroutines are ridiculously hard to learn either. I only learnt how they work during the construction of djOS, and that was only a few days.
Sure, the parallel API might help him now, but what about if he wants to do proper multitasking in future? The quicker you get into it, the more you can utilise it in smaller programs you make. The more of a habit it becomes, as well.
Just my opinion.
You needn't be so aggressive Yami, and you should probably re-read your posts before submitting them, as you could find you are being silly in your attempt to hurriedly respond to someone else's seemingly wrong reply.
Nothing wrong with trying to quickly try and help someone who may have their facts wrong, but it doesn't mean you should reply aggressively or inappropriately, as you only know as far as you think you know, and that may not be fact.