Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!husc6!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Longjmping back, and back again; Coroutines in C Message-ID: <15253@haddock.ima.isc.com> Date: 24 Nov 89 04:05:03 GMT References: <457@enea.se> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 9 In article <457@enea.se> jerker@helios.se (Jerker W}gberg) writes: >I am trying to implement coroutines using plain C. My application is not >time critical, so there is no need for speed, being portable is far more >important. The portable way to implement coroutines in C is analogous to the portable way to implement while-loops in Fortran. You emulate them with goto statements. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint