[Thread Prev] [Thread Next]
On Tue, 12 Nov 2002, Trish Sims wrote:
> I've been teaching year 8's (age 14) to use MicroWorlds. Lots of very
> successful projects but I'm having difficulty understanding and explaining
> the difference between proceedures that include
> when [touching? "t1 "t2] etc
> and
> if [touching? "t1 "t2] etc
Trish
WHEN will launch an independent paralllel process each time it is invoked;
it's like LAUNCH and FOREVER. This can be very powerful, but it i can
quickly give rise to bugs and unintended consequences that can be hard to
trace. For most cases, I find that IF will do the job. It's easier to
understand within a procedural programming model.
cheers
Jeff
Previous by thread:
When or if
Next by thread:
When or if
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|