Xref: utzoo comp.object:512 comp.lang.c++:5687 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!apple!sun-barr!newstop!sun!brahmand!grover From: grover%brahmand@Sun.COM (Vinod Grover) Newsgroups: comp.object,comp.lang.c++ Subject: Re: Continuations Message-ID: <128489@sun.Eng.Sun.COM> Date: 28 Nov 89 21:51:49 GMT References: <2664@bingvaxu.cc.binghamton.edu> <9624@pyr.gatech.EDU> <1623@odin.SGI.COM> Sender: news@sun.Eng.Sun.COM Reply-To: grover@sun.UUCP (Vinod Grover) Organization: Sun Microsystems, Mountain View Lines: 19 In article <1623@odin.SGI.COM> shap@delrey.sgi.com (Jonathan Shapiro) writes: >I do not believe that it is feasible to add continuations to C++ for >any number of reasons, but I would be interested to hear the reactions >in this community regarding their utility in object-oriented programming. > I do not know if you are talking about first-class continuations or not, but in languages which are stack-based first-class continuations are not trivial to add. (By stack-based I mean that the procedure entry exit sequance behaves in a stack-like fashion) In C the idea of setjmp/longjump comes as close to continuations as one can get. Admittedly, this is not as elegant as Scheme's notion of continuation but workable in concept. > >Jonathan Shapiro >Silicon Graphics, Inc. Vinod Grover Sun Microsystems. Brought to you by Super Global Mega Corp .com