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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.200.8.239 with SMTP id y44mr23812820qth.42.1509214024000; Sat, 28 Oct 2017 11:07:04 -0700 (PDT) X-Received: by 10.157.51.119 with SMTP id u52mr495149otd.6.1509214023966; Sat, 28 Oct 2017 11:07:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!k31no4262829qta.1!news-out.google.com!r5ni3841qtc.1!nntp.google.com!z50no4252951qtj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 28 Oct 2017 11:07:03 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=135.19.5.65; posting-account=bBnI1woAAACY07J21EGPe1EhRQ3pADUk NNTP-Posting-Host: 135.19.5.65 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: How do i print stuff? From: tclwarrior@gmail.com Injection-Date: Sat, 28 Oct 2017 18:07:03 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2058 X-Received-Body-CRC: 653226101 Xref: news.eternal-september.org comp.lang.ada:48614 Date: 2017-10-28T11:07:03-07:00 List-Id: Hi, This is my first day learning Ada I know other languages (Mainly Perl and SQL) So I am not total newbie Anyway, After that I saw this tweet https://twitter.com/shishini/status/924328446490218496 I decided that my first program, would be exactly that I came up with this -- Code with Ada.Text_IO; procedure Main is a : Float := (0.3 - 0.2); b : Float := (0.2 - 0.1); c : Boolean := (a=b); begin if c then Ada.Text_IO.Put_Line("true"); else Ada.Text_IO.Put_Line("false"); End if; end Main; -- Code Which at least show me that Ada is more like Go and D But, I failed miserable to simply Print a, b and c well, I kind of succeeded in printing a and b using Float_Text_IO.Put But could not find a way to Print c (a boolean) Well, so my question, that is the strategy to print stuff in Ada does have have a print statement that can print any type does each type have his one print statement Should I cast all types to strings and print them using Text_IO How do I cast floats and booleans to strings? Thanks Ali