Path: utzoo!attcan!uunet!husc6!ukma!mailrus!cornell!uw-beaver!ssc-vax!lee From: lee@ssc-vax.UUCP (Lee Carver) Newsgroups: comp.lang.c++ Subject: Re: co-routine concept in C++? Summary: aren't objects co-routines? Message-ID: <1191@ssc-bee.ssc-vax.UUCP> Date: 13 Oct 88 23:25:54 GMT References: <649@laura.UUCP> Organization: Boeing Aerospace Corp., Seattle WA Lines: 22 In article <649@laura.UUCP>, bause@exunido.uucp (Falko Bause) writes: > In an article from Bjarne Stroustrup 'What is "Object-Oriented Programming"?' > 'For example, the C++ standard library provides a co-routine class.' > > The problem is that I'm not able to find it. > Where is it? What are the names of the special procedures (I can't found > resume and detach in any ".h"-file)? > > Does Stroustrup really means, that there is a possibilty to implement the > co-routine concept in C++, which is implemented e.g. in SIMULA? Strange, I had just been thinking on this issue, and maybe I can muddy the waters some more :-). It seems to me that an object, by it self, of its very nature, constitues a co-routine. Consider a program with communications between the objects. Each call on an object cause the called object to continue from its saved (or suspended) state. It seems that this is a complete implementation of co-routines. Am I missing some (archane :-) definition of "co-routine"ness. Hope this gets the discussion off to a good start.