comp.lang.ada
 help / color / mirror / Atom feed
* How it works  get_line function
@ 2009-05-08 20:50 juanmiuk
  2009-05-08 21:33 ` Jeffrey R. Carter
  0 siblings, 1 reply; 3+ messages in thread
From: juanmiuk @ 2009-05-08 20:50 UTC (permalink / raw)


Hello All,

I tried to worked out how works the function get_line but gave me a
error:

with Ada.Text_Io;
use Ada.Text_Io;

procedure Read_String_func is
	Line : String (1 .. 80);
begin
	Put("Write a string: ");
	Line := Get_Line;
end Read_String_Func;

Write a string: adfkjadfk


raised CONSTRAINT_ERROR : read_string_func.adb:11 length check failed

What I was doing wrong?

Thanks in advance

Juan Miguel




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-09 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08 20:50 How it works get_line function juanmiuk
2009-05-08 21:33 ` Jeffrey R. Carter
2009-05-09 20:56   ` juanmiuk

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