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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: How do i print stuff? Date: Sat, 28 Oct 2017 21:52:13 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net rfkQdKVdT3zXCNcEtJCzKASKMawE5E+xFR+OMyy/ApdKiaawB5 Cancel-Lock: sha1:2wcRuvJYGxqSoPaXJHOMQ37P5xA= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:48618 Date: 2017-10-28T21:52:13+03:00 List-Id: On 17-10-28 21:30 , Niklas Holsti wrote: > On 17-10-28 21:07 , tclwarrior@gmail.com wrote: ... >> But could not find a way to Print c (a boolean) > > so you can do > > Ada.Text_IO.Put_Line (Boolean'Image (c)); > > and get TRUE or FALSE printed. Oh yes, in compilers that implement the most recent language standard, you can also use 'Image directly on the variable, as in Ada.Text_IO.Put_Line (c'Image); If you are using the GNAT compiler, and the above does not compile, you can use instead the older GNAT-specific form: Ada.Text_IO.Put_Line (c'Img); -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .