comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Why am I getting "missing operand" from get_line()?
Date: Tue, 31 May 2016 08:51:24 +0300
Date: 2016-05-31T08:51:24+03:00	[thread overview]
Message-ID: <dr4n2tF1a5rU1@mid.individual.net> (raw)
In-Reply-To: <efebae23-5003-460d-8d60-fc948d862bdd@googlegroups.com>

On 16-05-31 08:40 , Egil H H wrote:
> On Tuesday, May 31, 2016 at 1:09:17 AM UTC+2, John Smith wrote:
>> On page 459 of the 2012 reference manual, on the last line, I can
>> clearly see that Get_Line() does not take any inputs and returns an
>> unbounded string.
>
> No, you can clearly see that Get_Line does not take any inputs and
> returns an unbounded string. Like I said, it does not take
> parenthesis

Just to make it very clear: a parameterless call in Ada consists of just 
the subprogram name, without any ().

Do not write:

   First_Name := Ada.Text_IO.Unbounded_IO.Get_Line();

Do write:

   First_Name := Ada.Text_IO.Unbounded_IO.Get_Line;

HTH,

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .

  reply	other threads:[~2016-05-31  5:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-30 20:31 Why am I getting "missing operand" from get_line()? John Smith
2016-05-30 20:36 ` Egil H H
2016-05-30 23:09   ` John Smith
2016-05-30 23:59     ` Jeffrey R. Carter
2016-05-31  0:12       ` John Smith
2016-05-31  5:40     ` Egil H H
2016-05-31  5:51       ` Niklas Holsti [this message]
2016-06-01 22:21   ` daserlang
2016-06-02 12:57   ` mockturtle
replies disabled

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