From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,10d1a90a699d6cfc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada tasking question References: <20070418201307.18a85fd9@cube.tz.axivion.com> <462688E3.6050105@nowhere.com> <20070419005738.692eeeb6@cube.tz.axivion.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1177043575 12.201.97.213 (Fri, 20 Apr 2007 04:32:55 GMT) NNTP-Posting-Date: Fri, 20 Apr 2007 04:32:55 GMT Organization: AT&T ASP.att.net Date: Fri, 20 Apr 2007 04:32:55 GMT Xref: g2news1.google.com comp.lang.ada:15135 Date: 2007-04-20T04:32:55+00:00 List-Id: Jacob Sparre Andersen wrote: > > The exception handler allows us to notice when one of the tasks dies. > But can we (re)start it somehow? Or will we have to put an exception > handler inside the processing loop, and that way keep the task > running? Ada's exception-handling syntax does not directly provide for restarting or repeating the code that raised the exception. However, Ada does provide the building blocks to achieve that: You put a block statement with an exception handler inside a loop. -- Jeff Carter "C++ is like giving an AK-47 to a monk, shooting him full of crack and letting him loose in a mall and expecting him to balance your checking account 'when he has the time.'" Drew Olbrich 52