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!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How to append linefeed to unbounded string? Date: Sun, 15 Nov 2015 16:22:45 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Nov 2015 23:20:30 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="12392"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/dIKX7HXFnqoB+JYvvXuZD2gaQscx5t8Q=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: Cancel-Lock: sha1:7KAbqi7usWbnesdUK+xxWl0Ck0M= Xref: news.eternal-september.org comp.lang.ada:28380 Date: 2015-11-15T16:22:45-07:00 List-Id: 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