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,9e91bd3f3ee80c47 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: reverse Integer'image(someString); Date: Tue, 26 Apr 2005 10:41:35 +0200 Organization: Adalog Message-ID: References: <426cb55e$0$30475$ba620e4c@news.skynet.be> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1114505783 9273 195.25.228.57 (26 Apr 2005 08:56:23 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 26 Apr 2005 08:56:23 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:10712 Date: 2005-04-26T10:41:35+02:00 List-Id: Bj�rn Lundin a �crit : >> There was 2 solutions: >> >> Str : constant String := "..."; >> >> or >> >> Str : String (1 .. 3) := "..."; >> And the work-around was: Const_Str : constant String := "..."; Str : String (Const_Str'Range) := Const_Str; So the feature was, in fact, actually available. I think the authors of Ada83 thought that they should avoid having to declare the bounds for: Mess: constant String (1..7) := "Message"; and didn't realize it was useful for variables too. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr