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: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newsfeeds.sol.net!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Thu, 06 May 2010 16:19:15 -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: pcls6.std.com 1273177143 12103 192.74.137.71 (6 May 2010 20:19:03 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 6 May 2010 20:19:03 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:FUAauYK65GEm2Ufqy+qQTqewP84= Xref: g2news2.google.com comp.lang.ada:11339 Date: 2010-05-06T16:19:15-04:00 List-Id: Warren writes: > As others have suggested, probably not, or at best on > an implementation basis only. At best, this suggests > that this approach is unportable. Definitely not, and not on an implementation-defined basis. An implementation may define its own attributes, and it can choose to make those user-specifiable, or not. But an implementation cannot make 'Image user-specifiable. Of course, an implementation can have a non-standard mode in which 'Image is user-specifiable. But in that mode, it's not an Ada implementation. > True, but in my case I just needed the leading zeros, sans > any sign: > > 900 to be displayed as "00900" (vs " 900"). So create a function called Image that does that. I think Image is a better name than To_String, by the way -- it's a common convention to use Image. The leading blank produced by T'Image is indeed annoying! What were they thinking?! Never mind, that's been discussed to death. It's not a huge problem, but it's one of the first things new Ada programmers notice, and it's a real turn-off. - Bob