From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: STRING length
Date: Wed, 15 Nov 2006 02:21:55 +0100
Date: 2006-11-15T02:21:55+01:00 [thread overview]
Message-ID: <877ixx4i8c.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 1163552946.479495.27330@h48g2000cwc.googlegroups.com
"markww" <markww@gmail.com> writes:
> Actually please disregard the previous post, I found I needed to with
> and use:
>
> Ada.Text_IO.Unbounded_IO
>
> So.. finally one compilation error remains, the actual call to my
> function:
>
> begin
>
> Add_Record("Mark", "555-555-5555", "123 main street");
>
> end LinkList;
>
> the error is:
>
> expected private type "Ada.Strings.Unbounded.Unbounded_String"
>
> what does that mean? The problem is with calling the procedure, if I
> comment the call out compilation is successful. The procedure looks
> like:
"Mark" is a regular, not unbounded string. Try this:
begin
Add_Record (To_Unbounded_String ("Mark"),
To_Unbounded_String ("555-555-5555"),
To_Unbounded_String ("123 main street"));
end;
You may also like:
declare
function "+" (R : in String) return Unbounded_String
renames To_Unbounded_String;
begin
Add_Record (+"Mark", +"555-555-5555", +"123 main street");
end;
--
Ludovic Brenta.
next prev parent reply other threads:[~2006-11-15 1:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 22:51 STRING length markww
2006-11-14 22:24 ` Georg Bauhaus
2006-11-15 0:44 ` markww
2006-11-15 1:09 ` markww
2006-11-15 1:21 ` Ludovic Brenta [this message]
2006-11-15 1:29 ` Jeffrey R. Carter
2006-11-15 2:13 ` markww
2006-11-15 1:17 ` Ludovic Brenta
2006-11-15 1:27 ` Jeffrey R. Carter
2006-11-15 16:28 ` Martin Krischik
2006-11-16 8:25 ` Jerry
-- strict thread matches above, loose matches on Subject: below --
1998-10-01 0:00 String Length mincus
1998-10-02 0:00 ` Pascal Obry
1998-10-02 0:00 ` Ehud Lamm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox