comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Lundin" <bnl@spray.se>
To: Pascal Obry <pascal@obry.net>
Cc: comp.lang.ada@ada-france.org
Subject: Re: reverse Integer'image(someString);
Date: Mon, 25 Apr 2005 21:43:41 +0200
Date: 2005-04-25T21:43:41+02:00	[thread overview]
Message-ID: <mailman.73.1114458255.24457.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <uoec2lmzx.fsf@obry.net>


2005-04-25 kl. 20.39 skrev Pascal Obry:

>
> Björn Lundin <bnl@spray.se> 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 
> 83 was
> not able to initialized unconstraint objects like strings.
>
> There was 2 solutions:
>
>    Str : constant String := "...";
>
> or
>
>    Str : String (1 .. 3) := "...";
>
> Pascal.

Correct, and when you don't know the length of the term to the right of 
the assignment, as
in the example (integer'image(An_Anteger)), then you are pretty much 
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 
site.
(We did an extension to our warehouse management system for a customer 
with AWS)

I won't go to AWS 2.x for a while but to Aix 5.2 or 5,3 fairly shortly, 
but I expect no trouble.
( I did have some troubles building it, but anyway, I prefer to link it 
all statically, which wen't ok.
Only funny thing I saw was that the process hung on shutdown, which I 
traced to the syscalls
  close  and shutdown. I first got hung on shutdown, which i commented 
and then on close.
But when we shut the webserver program down, we want the process to go 
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örn Lundin
bnl at spray dot se




  reply	other threads:[~2005-04-25 19:43 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-23 19:59 reverse Integer'image(someString); Doker
2005-04-25  9:16 ` Adrien Plisson
2005-04-25 11:10   ` Jeff C
2005-04-25 11:40     ` David C. Hoos, Sr.
2005-04-25 11:50       ` Larry Kilgallen
2005-04-25 17:13         ` Pascal Obry
2005-04-25 17:50           ` Björn Lundin
2005-04-25 18:39             ` Pascal Obry
2005-04-25 19:43               ` Björn Lundin [this message]
2005-04-26  8:41                 ` Jean-Pierre Rosen
2005-04-26  4:12               ` Wes Groleau
2005-04-27  4:43                 ` Jeffrey Carter
2005-04-25 17:38         ` Frank J. Lhota
2005-04-25 17:14       ` Pascal Obry
2005-04-26  1:53       ` Jeffrey Carter
2005-04-28 20:31       ` Simon Wright
2005-04-25  9:18 ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox