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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e91bd3f3ee80c47 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 25 Apr 2005 06:10:38 -0500 Date: Mon, 25 Apr 2005 07:10:59 -0400 From: Jeff C User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: reverse Integer'image(someString); References: <426cb55e$0$30475$ba620e4c@news.skynet.be> In-Reply-To: <426cb55e$0$30475$ba620e4c@news.skynet.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-n99ZWccPpXwIjjgxcRri2/IodXoc8IjqYT6N3XVXdPeHQCX6XPJ3mYzRUe9FKG58OqFM3sdp+54qig1!8AAXPN9Vqr/ADhq+d8iyD4FX/2YVco0MIrdvUT4/mkOxe3sX+1sXTigWN1mULg== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:10680 Date: 2005-04-25T07:10:59-04:00 List-Id: Adrien Plisson wrote: > Doker wrote: > > when i want String from Integer i do reverse Integer'image(someString); > > isn't this wrong ? it should be: > someString := Integer'Image( someInteger ); Actually, new people get into trouble all of the time with that construct and end up with constraint errors. When used in this form, someString needs to be extactly the same length as the return length of Integer'image(someInteger). What does work fine are: a) Text_IO.Put_Line(Integer'Image(Some_Integer)); b) declare Some_String : constant String := Integer'Image(Some_Integer); begin ...play with Some_String end;