comp.lang.ada
 help / color / mirror / Atom feed
* Unbounded.String instead of Standard.String
@ 2015-12-27 17:34 comicfanzine
  2015-12-27 17:39 ` Jeffrey R. Carter
  0 siblings, 1 reply; 5+ messages in thread
From: comicfanzine @ 2015-12-27 17:34 UTC (permalink / raw)


Hi ,

I want to use a String variable with no specific length and without a "declare" bloc .

I tried the following code which compile on Gnat 4.9 , Ubuntu 15.10 .

The problem is that at execution time , nothing happen .


with Ada.Text_IO; 
with Ada.Strings.Unbounded; 

use Ada.Text_IO; 
use Ada.Strings.Unbounded; 
 
procedure autre(var : String) is

 transform : Unbounded_String := To_Unbounded_String(Source => var) 
   
    
 begin
	get(transform);
end autre;


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

end of thread, other threads:[~2016-01-06 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-27 17:34 Unbounded.String instead of Standard.String comicfanzine
2015-12-27 17:39 ` Jeffrey R. Carter
2015-12-28 19:00   ` Anh Vo
2016-01-06 15:21     ` comicfanzine
2016-01-06 17:41       ` Anh Vo

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