Path: news.cs.au.dk!news.net.uni-c.dk!newspeer.ebone.net!news1.ebone.net!news.ebone.net!skynet.be!poster!not-for-mail From: Atle Newsgroups: comp.lang.beta Subject: More newbie: suspend Date: Thu, 01 Jun 2000 15:03:29 -0100 Organization: Belgacom Skynet SA/NV Lines: 50 Message-ID: <39368951.3F2E3D5D@skynet.be> NNTP-Posting-Host: dialup177.charleroi.skynet.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news1.skynet.be 959864463 19988 195.238.7.177 (1 Jun 2000 13:01:03 GMT) X-Complaints-To: abuse@skynet.be NNTP-Posting-Date: 1 Jun 2000 13:01:03 GMT X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en Xref: news.cs.au.dk comp.lang.beta:12377 Hello, and thanks for all the help I have received. Instead of thanking each one of you individually, I will do it here: You are a GREAT bunch of guys! Now, the quintessential newbie is back: This time it is 'suspend'. First of all, in the overview doc, chptr 8 Multiple threads, there is talk about 'deterministic coroutine evaluation' and the operator |. There is also mention of fork. What I need to know, will be this: Activity: (# do cycle (# do GetOrder; suspend; ProcessOrder; suspend; DeliverOrder; suspend; #) #) Now, the document speaks about A and B being instances of this, and invoked as cycle(#do A; .... B; .... #) I am i n deep s<< is this right (Y/N)? Next: suspend. Unfortunately, I know suspend in the form suspend X, where X is a variable, from Icon. When a generator (coroutine) suspends, will there be a legal value in the exit variable, will it be updated on each invokation? Is there an easy-to-follow declarative program that uses coroutines as generators, so I can get this straightened out in my (somewhat confused) head? Thx again! Atle