Path: utzoo!mnetor!uunet!husc6!bbn!schooler@oak.bbn.com From: schooler@oak.bbn.com (Richard Schooler) Newsgroups: comp.lang.misc Subject: Re: From Modula to Oberon Message-ID: <22162@bbn.COM> Date: 16 Mar 88 15:04:21 GMT References: <2827@enea.se> <1557@pasteur.Berkeley.Edu> <3764@bloom-beacon.MIT.EDU> <7747@sol.ARPA> <1131@PT.CS.CMU.EDU> Sender: news@bbn.COM Reply-To: schooler@oak.bbn.com (Richard Schooler) Organization: BBN Advanced Computers, Inc. Lines: 9 In-reply-to: edw@IUS1.CS.CMU.EDU (Eddie Wyatt) The debate about CLU iterators misses an important point: CLU iterators are coroutines, which C does not have. The implication is that per-iteration state is nicely hidden in CLU ("on the stack" in the coroutine local variables), and has to be explicitly managed in C (or any other coroutine-free language) by putting the state into globals or making the user hang on to the state. -- Richard schooler@bbn.com