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.129.73.151 with SMTP id w145mr43776105ywa.39.1451237645384; Sun, 27 Dec 2015 09:34:05 -0800 (PST) X-Received: by 10.182.73.167 with SMTP id m7mr418486obv.11.1451237645304; Sun, 27 Dec 2015 09:34:05 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!1.eu.feeder.erje.net!feeder.erje.net!2.us.feeder.erje.net!news.glorb.com!6no1120509qgy.0!news-out.google.com!f6ni35387igq.0!nntp.google.com!mv3no15689556igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 27 Dec 2015 09:34:05 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=176.10.104.240; posting-account=zd4fUAoAAABZGnAfDxrdJ5Lpts-qUilv NNTP-Posting-Host: 176.10.104.240 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Unbounded.String instead of Standard.String From: comicfanzine@gmail.com Injection-Date: Sun, 27 Dec 2015 17:34:05 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28889 Date: 2015-12-27T09:34:05-08:00 List-Id: Hi , I want to use a String variable with no specific length and without a "declare" bloc . I tried the following code which compile on Gnat 4.9 , Ubuntu 15.10 . The problem is that at execution time , nothing happen . with Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Text_IO; use Ada.Strings.Unbounded; procedure autre(var : String) is transform : Unbounded_String := To_Unbounded_String(Source => var) begin get(transform); end autre;