comp.lang.ada
 help / color / mirror / Atom feed
From: rieachus@comcast.net
Subject: Re: Why does this input get "skipped"?
Date: Wed, 24 Aug 2016 03:34:08 -0700 (PDT)
Date: 2016-08-24T03:34:08-07:00	[thread overview]
Message-ID: <cd018b24-8837-4106-b3c4-d4a97c41bc69@googlegroups.com> (raw)
In-Reply-To: <npgq48$5qs$1@dont-email.me>

On Tuesday, August 23, 2016 at 2:23:05 AM UTC-4, J-P. Rosen wrote:
> Le 23/08/2016 à 00:18, rieachus@comcast.net a écrit :
> > Get_Line, Skip_Line, and Set_Col(1) should all get you to the same place. 
> Not exactly. The benefit of using Set_Col(1) is that if you are already
> on column 1, it does nothing, while others will go to the next line.
> 
> Therefore, Set_Col(1) can safely ignore whether there was a skip_line
> preceding it or not.

Correct.  I was only considering situations following a non-blank Put.  I just consider it to be very bad juju to write output without completing the line.  I haven't checked recently, but it used to be that compiler run-times would not immediately read a partial/non-completed line.  (The buffering is usually in the operating system.  The real issue is that you can't close then reopen Current_Input in an immediate mode.)


  reply	other threads:[~2016-08-24 10:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20 22:41 Why does this input get "skipped"? John Smith
2016-08-20 23:16 ` Jeffrey R. Carter
2016-08-21  0:01   ` John Smith
2016-08-21  0:36     ` John Smith
2016-08-22  5:00       ` J-P. Rosen
2016-08-22 22:18       ` rieachus
2016-08-23  6:22         ` J-P. Rosen
2016-08-24 10:34           ` rieachus [this message]
2016-08-21  0:50     ` Jeffrey R. Carter
2016-08-21  1:04       ` John Smith
2016-08-21  4:07         ` Jeffrey R. Carter
2016-08-21  0:00 ` rieachus
replies disabled

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