From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Accessing The Command Line Date: Fri, 5 Jul 2024 01:13:36 +1000 Organization: A noiseless patient Spider Message-ID: References: <87plruhs8e.fsf@nightsong.com> 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: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:66220 List-Id: 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.