comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Accessing The Command Line
Date: Fri, 5 Jul 2024 10:58:00 +0200	[thread overview]
Message-ID: <v68cih$36sd6$1@dont-email.me> (raw)
In-Reply-To: <v67co9$2v6vc$4@dont-email.me>

Le 05/07/2024 à 01:54, Lawrence D'Oliveiro a écrit :
> On Thu, 4 Jul 2024 13:27:05 +0200, Jeffrey R.Carter wrote:
> 
>> On 2024-07-04 02:08, Lawrence D'Oliveiro wrote:
>>
>> Remember that you can concatenate strings:
>>
>>>       tio.put("my name: ");
>>>       tio.put(cli.Command_name);
>>>       tio.Put_Line("");
>> Tio.Put_Line (Item => "my name: " & Cli.Command_Name);
> I’m sure I can, but I’m not sure what the point is. Let Ada collect the
> pieces in its own buffers. That saves copying steps.

Agreed. I don't understand why people dislike printing piece by piece. 
In the old FORTRAN, you could write only line by line, but this time is 
long gone...
With the various Put procedures, you have individual formatting options 
that you don't have otherwise. Moreover, there is a nice property that 
few people noticed: if you have an algorithm writing data to a file, 
with loops and so on, you can keep the exact same structure replacing 
every Put with the matching Get, and you will read your data correctly. 
This feature goes away as soon as you have a 'Image.

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
https://www.adalog.fr https://www.adacontrol.fr

  reply	other threads:[~2024-07-05  8:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-04  0:08 Accessing The Command Line Lawrence D'Oliveiro
2024-07-04  1:16 ` Paul Rubin
2024-07-04  1:50   ` Lawrence D'Oliveiro
2024-07-04 15:13     ` Rod Kay
2024-07-04 16:15     ` Dmitry A. Kazakov
2024-07-04 11:27 ` Jeffrey R.Carter
2024-07-04 23:54   ` Lawrence D'Oliveiro
2024-07-05  8:58     ` J-P. Rosen [this message]
2024-07-04 13:01 ` Dmitry A. Kazakov
2024-07-04 19:42 ` Ben Bacarisse
2024-07-04 22:06   ` Paul Rubin
replies disabled

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