comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Davies <joviangm@gmail.com>
Subject: Re: Image attribute (yet again)
Date: Sun, 26 Apr 2020 11:57:22 -0700 (PDT)
Date: 2020-04-26T11:57:22-07:00	[thread overview]
Message-ID: <da18aa4b-5c5b-4c04-984d-47140aff05d5@googlegroups.com> (raw)
In-Reply-To: <r838c5$5ts$1@dont-email.me>

On Sunday, 26 April 2020 07:05:59 UTC+1, J-P. Rosen  wrote:

> Personnaly, I am sick of people wanting to change the language just to
> save having to write a three-line function.

I could write a three-line function to do 'Min but I appreciate it
being party of the language.

> 'Image is not intending for elaborate formatting

Displaying numbers without extraneous spaces is hardly elaborate.

> it's a quick debugging help.

I have used 'Image in delivered code and I doubt I'm alone. Furthermore,
it's useful when first learning Ada, and the leading space is not a
good advert for students.

> Text_IO has all formatting features for proper IO.

Text_IO is somewhat lacking when it comes to formatting
(e.g. see Jere's and Oliver's replies).

A couple of additional thoughts:-

1. If Trim_Image were added then Trim_Width should also be added,
   which could be useful even when Integer_IO.Put is being used.

2. If the language won't change (and maybe even if it does change)
   perhaps if would be nice if Gnat added S'Trmg (c.f. S'Img).

      parent reply	other threads:[~2020-04-26 18:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-20 15:24 Image attribute (yet again) Stephen Davies
2020-04-25 22:35 ` Stephen Davies
2020-04-26  6:05   ` J-P. Rosen
2020-04-26 14:16     ` Jere
2020-04-26 17:09       ` Jeffrey R. Carter
2020-04-26 17:33         ` Jere
2020-04-27 12:33           ` J-P. Rosen
2020-04-27 12:50             ` Jere
2020-04-27 13:42               ` J-P. Rosen
2020-04-27 14:05                 ` Jere
2020-04-27 14:55                 ` Jeffrey R. Carter
2020-04-28  6:04                   ` J-P. Rosen
2020-04-27 14:10             ` Jere
2020-04-28  6:02               ` J-P. Rosen
2020-04-28 13:03                 ` Jere
2020-04-26 18:40       ` Oliver Kellogg
2020-04-26 18:42         ` Oliver Kellogg
2020-04-26 18:43           ` Oliver Kellogg
2020-04-27 12:52         ` Jere
2020-05-20  1:52       ` Shark8
2020-04-26 18:57     ` Stephen Davies [this message]
replies disabled

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