comp.lang.ada
 help / color / mirror / Atom feed
From: John Smith <yoursurrogategod@gmail.com>
Subject: Re: How to append linefeed to unbounded string?
Date: Sun, 15 Nov 2015 15:25:03 -0800 (PST)
Date: 2015-11-15T15:25:03-08:00	[thread overview]
Message-ID: <11349e8f-8c2c-473e-9f8d-03a5f2883327@googlegroups.com> (raw)
In-Reply-To: <n2b3vs$c38$1@dont-email.me>

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.


      reply	other threads:[~2015-11-15 23:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-15 23:16 How to append linefeed to unbounded string? John Smith
2015-11-15 23:22 ` Jeffrey R. Carter
2015-11-15 23:25   ` John Smith [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox