From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Accessing The Command Line Date: Fri, 5 Jul 2024 10:58:00 +0200 Organization: Adalog Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 05 Jul 2024 10:57:53 +0200 (CEST) Injection-Info: dont-email.me; posting-host="365854dea7eb858efa36df7c68b8f897"; logging-data="3371430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+woZdry188UNPgEq/IX6eC" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:OPDJ4Kz8exSeDVBzqs9brXESju8= In-Reply-To: Content-Language: en-US, fr Xref: news.eternal-september.org comp.lang.ada:66225 List-Id: 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