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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8aaaaeb1690d828b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k1g2000yqf.googlegroups.com!not-for-mail From: vlc Newsgroups: comp.lang.ada Subject: Re: writing on terminal before an exception Date: Mon, 3 Aug 2009 13:40:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9bf5d23b-ae1c-48aa-b23e-7c716c6eba29@k1g2000yqf.googlegroups.com> References: NNTP-Posting-Host: 87.221.72.189 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1249332044 781 127.0.0.1 (3 Aug 2009 20:40:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 Aug 2009 20:40:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k1g2000yqf.googlegroups.com; posting-host=87.221.72.189; posting-account=ROuOHgoAAABopjDuvPBd02HgYVR-VCZk User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (X11; Linux i686; U; en) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7549 Date: 2009-08-03T13:40:27-07:00 List-Id: On Aug 2, 7:47=A0pm, mf...@yahoo.com (Mark Fabbri) wrote: > i have a problem with text_io and exception: > > Text_IO.Put ("No SH3 data."); > Text_IO.New_Line; > raise Sh3_NoData; > > if it raise an exception, the string "NO SH3 data" is not displayed. it > seems that the text_io don't actually print on screen. i also tryed with > text_io.flush after the New_Line, but nothing happens. > Have you already considered something like raise Sh3_NoData with "No SH3 data."; I'm not absolutely sure, but I think this will only compile in Ada 2005. Cheers!