comp.lang.ada
 help / color / mirror / Atom feed
From: van-bc!cs.ubc.ca!utcsri!rpi!usc!sdd.hp.com!spool.mu.edu!darwin.sura.net!c onvex!convex!pelakh@ucbvax.Berkeley.EDU  (Boris Pelakh)
Subject: Re: TASKS
Date: 6 Oct 92 11:23:04 GMT	[thread overview]
Message-ID: <1992Oct6.112304.16815@news.eng.convex.com> (raw)

In article <1992Oct6.022450.9087@ringer.cs.utsa.edu> mperez@ringer.cs.utsa.edu 
(Michael Perez) writes:
>I am learning ada and I was having trouble with TASK. My code looks
>something like this
> 
Your task body performs the accept only once, after that the task becomes 
terminated, and you get a TASKING_ERROR when calling the entry a second time.
Modify your task as follows:

>
>TASK body Name IS
>begin
  loop
   select
>    Accept filename(...);
>         ...........
>         statements
>         ...........
>    End filename;
   or
     terminate;
   end select;
  end loop;
>end Name;



-- 
Boris Pelakh		Ada Project Leader          pelakh@convex.com
		     Convex Computer Corporation
"If winning isn't important, why keep score ?"	-- Lt. Worf, Star Trek TNG.
			

             reply	other threads:[~1992-10-06 11:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-10-06 11:23 van-bc!cs.ubc.ca!utcsri!rpi!usc!sdd.hp.com!spool.mu.edu!darwin.sura.net!c [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26  9:01 tasks Edmund
2002-02-26 11:35 ` tasks Frank J. Lhota
2002-02-26 11:37 ` tasks Larry Kilgallen
1992-10-06 19:47 TASKS Bob Kitzberger
1992-10-06  2:24 TASKS elroy.jpl.nasa.gov!swrinde!ringer!mperez
replies disabled

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