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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e38b3d31f83372db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-29 14:04:19 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!chcgil2-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B140ECD.A486A578@ftw.rsc.raytheon.com> From: Wes Groleau X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en,es,fr,pt MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Natural to String without space? (newbie question) References: <3B0BD493.5ABBA12B@labe.felk.cvut.cz> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 29 May 2001 16:04:13 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 991170255 151.168.144.162 (Tue, 29 May 2001 17:04:15 EDT) NNTP-Posting-Date: Tue, 29 May 2001 17:04:15 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:7855 Date: 2001-05-29T16:04:13-05:00 List-Id: > function Image (N : in Natural) return String is > N_Image : constant String := Natural'Image (N); > begin > return N_Image (2 .. N_Image'Last); > end Image; Call me obsessive, but I feel safer with function Image (N : in Natural) return String is N_Image : constant String := Natural'Image (N); begin return N_Image (N'Image'First + 1 .. N_Image'Last ); end Image; -- Wes Groleau http://freepages.rootsweb.com/~wgroleau