| Deutsch English Français Italiano |
|
<v66e2h$2qctv$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Rod Kay <rodakay5@gmail.com>
Newsgroups: comp.lang.ada
Subject: Re: Accessing The Command Line
Date: Fri, 5 Jul 2024 01:13:36 +1000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <v66e2h$2qctv$1@dont-email.me>
References: <v64p6n$2dviq$1@dont-email.me> <87plruhs8e.fsf@nightsong.com>
<v64v62$2erlp$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 04 Jul 2024 17:11:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="137baab634ac7875ced3980f4211b512";
logging-data="2962367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194X7Li4DM/oHFozH5PYadPw6QJeFnk+uw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CA8QSAHSLmVlJLl0HBZ9EA8h7JU=
In-Reply-To: <v64v62$2erlp$2@dont-email.me>
Content-Language: en-US
Bytes: 1866
On 4/7/24 11:50, Lawrence D'Oliveiro wrote:
> On Wed, 03 Jul 2024 18:16:01 -0700, Paul Rubin wrote:
>
> I wonder how you would express such a thing in an Ada-friendly fashion?
There is the 'GNAT.Formatted_String' package, which provides
'printf' functionality.
Unfortunately, it's formatting is somewhat buggy and has been so for
many years. Usage is quite simple and reasonably elegant but the
occasional incorrect formatting is a major problem, essentially
rendering the package useless.
There is also the new 2022 f"X = {An_X_Variable}" notation for
embedding Variable'Image into strings, which is very nice. However, it
does not allow for formatting, so not useful for your needs. Just
thought I'd mention it, as it is now available in GCC 14.
Regards.