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.13.194.197 with SMTP id e188mr28678241ywd.24.1447629904253; Sun, 15 Nov 2015 15:25:04 -0800 (PST) X-Received: by 10.182.28.129 with SMTP id b1mr291514obh.4.1447629904220; Sun, 15 Nov 2015 15:25:04 -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!news.glorb.com!i2no3731608igv.0!news-out.google.com!l1ni5673igd.0!nntp.google.com!i2no3305333igv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 15 Nov 2015 15:25:03 -0800 (PST) In-Reply-To: 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 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <11349e8f-8c2c-473e-9f8d-03a5f2883327@googlegroups.com> Subject: Re: How to append linefeed to unbounded string? From: John Smith Injection-Date: Sun, 15 Nov 2015 23:25:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:28381 Date: 2015-11-15T15:25:03-08:00 List-Id: On Sunday, November 15, 2015 at 6:22:50 PM UTC-5, Jeffrey R. Carter wrote: > On 11/15/2015 04:16 PM, John Smith wrote: > > > > This is what I'm doing: > > Ada.Strings.Unbounded.Append(Result, > > Ada.Strings.Unbounded.To_Unbounded_String( > > Ada.Characters.Latin_1.LF)); > > To_Unbounded_String takes a String, not a Character. I'm not sure why you're > getting a msg about it expecting Integer. > > There is an Append that takes a Character, as you noted, so you can do > > Ada.Strings.Unbounded.Append (Result, Ada.Characters.Latin_1.LF); > > -- > Jeff Carter > "Apart from the sanitation, the medicine, education, wine, > public order, irrigation, roads, the fresh water system, > and public health, what have the Romans ever done for us?" > Monty Python's Life of Brian > 80 *facepalm* You're right! I misread the documentation and hence this error! It works now.