Subject: Re: co-routines (Ex: Re: Series. #)
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 1999/04/05
Newsgroups: comp.lang.lisp
Message-ID: <7ea67v$sj7a@fido.engr.sgi.com>
Vassil Nikolov  <vnikolov@poboxes.com> wrote:
+---------------
| > > Anybody aware of a language that has co-routines as a first class
| > > supported concept?
| 
| I think we need to distinguish between:
| * support for co-routines as a language construct...
| * co-routines as first-class objects---correct me if I'm wrong but
|   I can think only of Scheme's continuations here.
+---------------

If by "first-class" you mean the usual -- can be stored & fetched
from user variables, can be provided as an argument to & returned
as a value from arbitrary procedure calls -- then both the BLISS
exchj-based and the C setjmp/longjmp-based co-routines I mentioned
in my other reply are first-class. Both implementations reify the
stack object containing the saved state of a co-routine.


-Rob

-----
Rob Warnock, 8L-855		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
2011 N. Shoreline Blvd.		FAX: 650-964-0811
Mountain View, CA  94043	PP-ASEL-IA