comp.lang.ada
 help / color / mirror / Atom feed
From: comicfanzine@gmail.com
Subject: Re: Unbounded.String instead of Standard.String
Date: Wed, 6 Jan 2016 07:21:49 -0800 (PST)
Date: 2016-01-06T07:21:49-08:00	[thread overview]
Message-ID: <1ad2ecef-bfed-4129-8b27-da24909d72db@googlegroups.com> (raw)
In-Reply-To: <d72b4c6e-a3bb-4156-aeb3-e6254a8d2d32@googlegroups.com>

> Here is a tiny hint. Linkable/Executable procedure has no parameter.
> 
> Anh Vo

I didn't knew that a main procedure has no parameter .
Plus , i was a beginner with ubunded_string , so here is the correction :

with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Text_IO.Unbounded_IO;
  
use Ada.Text_IO;
use Ada.Strings.Unbounded;
use Ada.Text_IO.Unbounded_IO;
 
procedure autre is  
  var_string : Unbounded_String;
 begin
    get_line(var_string);
    put(var_string);
end autre;

  reply	other threads:[~2016-01-06 15:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2016-01-06 17:41       ` Anh Vo
replies disabled

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