Vassil Nikolov <firstname.lastname@example.org> 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 Warnock, 8L-855 email@example.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