[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> STOP and STOPME



At 0:31 +0300 19-6-1997, Yehuda Katz wrote:
>I understand that STOPME in MW is the same as THROW "TOPLEVEL in
>UCBLogo.
>As a rule of thumb I would refrain from using that command in other than
>emergency, as it results in a drastic intervention in the flow of the
>program. Its use might be a sign of poor programming style.

In MicroWorlds one can have several processes executed in parallel. To halt
a process you use STOPME. In the particular example of the "sculpture"
procedure, since you have only one process running (the one where the
sculpture procedure gets executed) "STOPME" is equivalent to:
	THROW "TOPLEVEL

In MicroWorlds there are many situations, like a process monitoring the
behaviour of other processes, where STOPME is indeed usefull and needed.

/// Dr. Augusto Chioccariello                  tel: +39 10 6475319
/// Istituto Tecnologie Didattiche - CNR       fax: +39 10 6475300
/// e-mail: augusto@itd.ge.cnr.it


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home