From: "Beard, Frank" <beardf@spawar.navy.mil>
To: "'comp.lang.ada@ada.eu.org'" <comp.lang.ada@ada.eu.org>
Subject: RE: Ada 0x Wish List
Date: Wed, 14 Feb 2001 20:33:23 -0500
Date: 2001-02-14T20:33:23-05:00 [thread overview]
Message-ID: <mailman.982200913.22644.comp.lang.ada@ada.eu.org> (raw)
Yes, but you talking about going from:
Ada.Text_Io.Put_Line(integer'image(X));
to
Ada.Text_Io.Put_Line(Ada.Strings.Fixed.Trim(source => integer'image(X),
side => Ada.Strings.Left));
It's a lot of extra keystrokes just to make something
uglier and less readable, for something that shouldn't
be there in the first place. I agree with Fraser.
Frank
PS. And what if you want to take a slice of the image?
Then it starts getting really ugly. So, hideous that
you definitely need a function.
-----Original Message-----
From: David C. Hoos, Sr. [mailto:david.c.hoos.sr@ada95.com]
Sent: Wednesday, February 14, 2001 6:23 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: Ada 0x Wish List
Ada.Strings.Fixed.Trim (Integer'Image (<integer-expression>))
will do it without and leading spaces.
"Fraser Wilson" <blancolioni@blancolioni.org> wrote in message
news:t8j79d3epqts89@corp.supernews.com...
> In article <3A87F362.3B2F6CEE@bton.ac.uk>, John English <je@bton.ac.uk>
wrote:
>
> >Since we're wishing, here are a couple of very minor ones off the top
> >of my head that relate to Ada.Text_IO, which unfortunately I haven't
> >got time to draft proper requests for:
>
> [ good ideas snipped ]
>
> How about an image attribute that doesn't put a space in front of positive
> integers. That space has always puzzled me -- it makes output of a series
> of positive integers easier, but as special cases go, that's pretty
special.
>
> Strikingly minor, but it's always bugged me.
>
> Fraser.
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada
next reply other threads:[~2001-02-15 1:33 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-15 1:33 Beard, Frank [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-02-12 3:25 Ada 0x Wish List Peter Richtmyer
2001-02-12 4:22 ` Jeffrey Carter
2001-02-12 7:23 ` Dale Stanbrough
2001-02-12 13:04 ` Preben Randhol
2001-02-13 16:33 ` Robert Deininger
2001-02-13 18:15 ` Keith Thompson
2001-02-12 7:39 ` Florian Weimer
2001-02-12 13:18 ` Steve Folly
2001-02-12 15:25 ` Arthur Schwarz
2001-02-12 14:29 ` John English
2001-02-13 8:31 ` Dr Adrian Wrigley
2001-02-13 20:46 ` Fraser Wilson
2001-02-13 22:06 ` Larry Hazel
2001-02-13 22:45 ` Fraser Wilson
2001-02-13 23:14 ` Larry Hazel
2001-02-13 23:59 ` David C. Hoos, Sr.
2001-02-14 1:22 ` Larry Hazel
2001-02-13 23:51 ` Keith Thompson
2001-02-14 11:23 ` David C. Hoos, Sr.
2001-02-15 22:01 ` Georg Bauhaus
2001-02-15 22:14 ` Marin David Condic
2001-02-17 8:43 ` Dr Adrian Wrigley
2001-02-12 16:08 ` Steve Folly
2001-02-12 17:53 ` Lao Xiao Hai
2001-02-12 18:22 ` (null)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox