Re: STRING length
- From: Ludovic Brenta <ludovic@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 15 Nov 2006 02:21:55 +0100
"markww" <markww@xxxxxxxxx> 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.
.
- References:
- STRING length
- From: markww
- Re: STRING length
- From: Georg Bauhaus
- Re: STRING length
- From: markww
- Re: STRING length
- From: markww
- STRING length
- Prev by Date: Re: STRING length
- Next by Date: Re: gnade error
- Previous by thread: Re: STRING length
- Next by thread: Re: STRING length
- Index(es):