From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,782d6c8a12248b09 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news3.google.com!out04a.usenetserver.com!news.usenetserver.com!in04.usenetserver.com!news.usenetserver.com!newsfeed.yul.equant.net!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ada Recursion with strings Date: Tue, 30 Sep 2008 21:15:53 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1222823754 10151 192.74.137.71 (1 Oct 2008 01:15:54 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 1 Oct 2008 01:15:54 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:7QVCW/AmMpXbYfcyPZJQ4r52hf4= Xref: g2news1.google.com comp.lang.ada:2179 Date: 2008-09-30T21:15:53-04:00 List-Id: "Jeffrey R. Carter" 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