comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: Icon Co-Expressions in Ada
Date: 1998/12/17
Date: 1998-12-17T00:00:00+00:00	[thread overview]
Message-ID: <36794F71.762920E4@elca-matrix.ch> (raw)
In-Reply-To: Pine.A41.3.96-heb-2.07.981217080010.70860A-100000@pluto.mscc.huji.ac.il

Ehud Lamm wrote:

> For this to work from arbitrary procedures, the language provides the
> suspend statement, which is like return but after which the procedure may
> be resumed.(you can have a procedure say suspend 4; suspend 5; for
> example).
> 
> I was thinking about implimenting this statement. Note that you ahve to
> remember exactly where the computation stopped.

This sounds like coroutines in other languages. The closest Ada has to
offer is tasks, but as Ada tasks can be called concurrently, you will
have a significant overhead over a simple coroutine mechanism.




  reply	other threads:[~1998-12-17  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-16  0:00 Icon Co-Expressions in Ada Ehud Lamm
1998-12-16  0:00 ` dennison
1998-12-16  0:00 ` Stephen Leake
1998-12-16  0:00   ` Al Christians
1998-12-17  0:00   ` Mats Weber
1998-12-17  0:00     ` Ehud Lamm
1998-12-17  0:00   ` Ehud Lamm
1998-12-17  0:00     ` Mats Weber [this message]
1998-12-17  0:00       ` Chris Morgan
1998-12-17  0:00       ` Ehud Lamm
1998-12-17  0:00     ` Stephen Leake
1998-12-17  0:00       ` Ehud Lamm
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox