comp.lang.ada
 help / color / mirror / Atom feed
From: Egil H H <ehh.public@gmail.com>
Subject: Re: Doing Ada right?
Date: Mon, 27 Jul 2015 23:42:24 -0700 (PDT)
Date: 2015-07-27T23:42:24-07:00	[thread overview]
Message-ID: <971df5a1-ca20-484e-b298-21485e243344@googlegroups.com> (raw)
In-Reply-To: <mp5tvb$mhe$2@dont-email.me>

On Monday, July 27, 2015 at 8:42:19 PM UTC+2, Jeffrey R. Carter wrote:
> I've always wondered why Ada.Text_IO
> overloads things with and without a File parameter, rather than having one
> version with the File parameter defaulted to Current_Input.

Wild guess: 
It seems logical for File to be first parameter when writing to/from a file, 
so we need two versions in order to write Ada.Text_IO.Put_Line("Hello World");
instead of having to write Ada.Text_IO.Put_Line(Item => "Hello World");


-- 
~egilhh



  reply	other threads:[~2015-07-28  6:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-27 15:17 Doing Ada right? EGarrulo
2015-07-27 16:32 ` David Botton
2015-07-27 18:28   ` EGarrulo
2015-07-27 18:42 ` Jeffrey R. Carter
2015-07-28  6:42   ` Egil H H [this message]
2015-07-28  7:06     ` Shark8
2015-07-28 17:38     ` Jeffrey R. Carter
replies disabled

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