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, WEIRD_PORT autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.222.169 with SMTP id qn9mr29143428pac.4.1447629408805; Sun, 15 Nov 2015 15:16:48 -0800 (PST) X-Received: by 10.182.196.9 with SMTP id ii9mr291521obc.7.1447629408740; Sun, 15 Nov 2015 15:16:48 -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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!i2no3729867igv.0!news-out.google.com!l1ni5671igd.0!nntp.google.com!i2no3729859igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 15 Nov 2015 15:16:48 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:18f:900:8350:ba86:87ff:fed6:5907; posting-account=AvekzAoAAABj-TclKcOWQmXwA49MFPGX NNTP-Posting-Host: 2601:18f:900:8350:ba86:87ff:fed6:5907 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: How to append linefeed to unbounded string? From: John Smith Injection-Date: Sun, 15 Nov 2015 23:16:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28378 Date: 2015-11-15T15:16:48-08:00 List-Id: Hello, This is what I'm doing: Ada.Strings.Unbounded.Append(Result, Ada.Strings.Unbounded.To_Unbounded_String( Ada.Characters.Latin_1.LF)); And this is the error that I'm getting: $ gnatmake -g ada_in_string.adb gcc -c -g ada_in_string.adb ada_in_string.adb:16:61: no candidate interpretations match the actuals: ada_in_string.adb:16:104: expected type "Standard.Integer" ada_in_string.adb:16:104: found type "Standard.Character" ada_in_string.adb:16:104: ==> in call to "To_Unbounded_String" at a-strunb.ads:97 ada_in_string.adb:16:104: ==> in call to "To_Unbounded_String" at a-strunb.ads:94 gnatmake: "ada_in_string.adb" compilation error What threw me for a loop is that when I look at the Append procedure documentation, it turns out that it should be able to take an input of a Character type. Not sure why I'm getting this error...