sdate at everestkc.net
Mon Dec 13 18:18:12 PST 2004
>> without which the clock kept ticking and the loopInit scipt kept
>> executing over and over again. (There is an implicit infinite-loop on
>> all the scripts).
> No, there isn't. E.g. if you just say in another script
> foo loopInit
> this will fire this script once (this is why there is an explicit
> "start script" to start a script looping).
Oh, yes. Thanks for correcting me.
> If you want to do this by hand, just click on the (!) on the left top
> edge instead of the clock.
I keep forgetting about the execute once (!) option. Is there any way
to NOT have the clock icon on the script?
Alternatively, is there a more elegant solution to "stop script"
regardless of which icons we click on (clock on the !)?
>>> foo loopBody
>>> Test foo's i > 100
>>> Yes foo stop script loopBody
>>> No mumble
>>> foo's i increase by 1
>>> This is somewhat cumbersome, but is quite clear about what it does
>>> and when it does it.
>> Worked like a charm ! Thanks for the hint.
>>> It has not come up as an issue with 5th graders because they stuff
>>> that we are encouraging them to do has either unbounded looping (the
>>> normal case) or the looping is stopped by some test of an external
>>> condition (as Phil suggested).
>> -- Shashank
> Squeakland mailing list
> Squeakland at squeakland.org
More information about the Squeakland