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,651d9b748faab5c6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!news-peer.gradwell.net!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <20050804161000.1ffa591b@localhost> Subject: Re: Newbie: Code isn't executed Date: Thu, 4 Aug 2005 16:07:35 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <42f22d52$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 04 Aug 2005 15:08:19 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1123168099 news.gradwell.net 38037 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:3960 Date: 2005-08-04T15:08:19+00:00 List-Id: Thomas Ruschival wrote: > Total: Positive :=1000; ... > while Total > 0 loop ... > Total := Total-1; Because Total is a Positive of range 1 .. Integer'Last, so it can never be 0 (it will raise an exception and dying silently...) Total : Integer := 1000; exception when others => Put_Line ("Oops!"); end Susan; would have stopped it being silent. Also, sharing Total between the tasks is poor, it should be a protected object. And finally, what's wrong with Put_Line (instead of Put/New_Line pairs)? Cheers -- Martin