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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable 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!usenet-fr.net!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: reverse Integer'image(someString); Date: Mon, 25 Apr 2005 21:43:41 +0200 Organization: Cuivre, Argent, Or Message-ID: References: <426cb55e$0$30475$ba620e4c@news.skynet.be> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1114458256 72879 212.85.156.195 (25 Apr 2005 19:44:16 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Mon, 25 Apr 2005 19:44:16 +0000 (UTC) Cc: comp.lang.ada@ada-france.org To: Pascal Obry Return-Path: In-Reply-To: X-Mailer: Apple Mail (2.622) X-Virus-Scanned: by amavisd-new at spray.net X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:10701 Date: 2005-04-25T21:43:41+02:00 2005-04-25 kl. 20.39 skrev Pascal Obry: > > Bj=F6rn Lundin writes: > >> My compiler also says it is required (Alsys Ada on Aix) >> I think this actually was a constraint in Ada 83 but removed in Ada = 95 > > I see, it is not "constant" that is required. The problem was that Ada=20= > 83 was > not able to initialized unconstraint objects like strings. > > There was 2 solutions: > > Str : constant String :=3D "..."; > > or > > Str : String (1 .. 3) :=3D "..."; > > Pascal. Correct, and when you don't know the length of the term to the right of=20= the assignment, as in the example (integer'image(An_Anteger)), then you are pretty much=20 stuck with your first solution, as Larry replied. By the way Pascal, I got AWS 1.4 running on Aix 4.3.3 on a production=20= site. (We did an extension to our warehouse management system for a customer=20= with AWS) I won't go to AWS 2.x for a while but to Aix 5.2 or 5,3 fairly shortly,=20= but I expect no trouble. ( I did have some troubles building it, but anyway, I prefer to link it=20= all statically, which wen't ok. Only funny thing I saw was that the process hung on shutdown, which I=20 traced to the syscalls close and shutdown. I first got hung on shutdown, which i commented=20= and then on close. But when we shut the webserver program down, we want the process to go=20= down as well so this is no problem for me.) We use gnat 3.16a on that machine, but we will use 5.03a later on. > > Bj=F6rn Lundin bnl at spray dot se