comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Ada Recursion with strings
Date: Tue, 30 Sep 2008 21:15:53 -0400
Date: 2008-09-30T21:15:53-04:00	[thread overview]
Message-ID: <wccljx9yv1y.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: EtzEk.367018$yE1.229235@attbi_s21

"Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> writes:

> Joe wrote:
>> Thrice, I'm not sure I know what you're getting at.
>
> It's good practice to make such values into named numbers.

Do you really think that's useful in this case, where 2**8
appears several times close together?  What would you call
that named number -- Two_To_The_Eighth?

>> One other thing.  The image attribute returns a string with a space in
>> front.  Is there any way to get rid of the space?
>
> Technically, 'Image for numeric types begins with the sign, which is ' '
> for non-negative numbers and '-' for negative values. That doesn't make
> it any more user friendly.
>
> There are a number of ways to "get rid" of the space. Probably the
> easiest is to slice the image to exclude the 1st Character. See ARM
> 4.1.2.

Right, the extra blank is very annoying, but not so hard to get rid of.

- Bob



  reply	other threads:[~2008-10-01  1:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 20:30 Ada Recursion with strings Joe
2008-09-30 22:24 ` Adam Beneschan
2008-09-30 22:24 ` Jeffrey R. Carter
2008-10-01  0:13   ` Joe
2008-10-01  0:27     ` Jeffrey R. Carter
2008-10-01  1:15       ` Robert A Duff [this message]
2008-10-01 11:34         ` Jeffrey R. Carter
2008-10-01 14:29           ` Adam Beneschan
2008-10-01 15:18             ` Jean-Pierre Rosen
2008-10-01 16:47               ` Georg Bauhaus
2008-10-02  7:24               ` Niklas Holsti
2008-10-02  8:18                 ` Ludovic Brenta
2008-10-03  6:54             ` Maciej Sobczak
2008-10-03  7:38               ` Jean-Pierre Rosen
2008-10-03  9:06               ` Dmitry A. Kazakov
2008-10-01  0:28     ` Adam Beneschan
2008-10-01  9:48       ` Georg Bauhaus
2008-10-01 10:22         ` Dmitry A. Kazakov
2008-10-01  3:01 ` anon
replies disabled

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