comp.lang.ada
 help / color / mirror / Atom feed
From: Mats Weber <matsw@mail.com>
Subject: Re: generic package dilemma
Date: 1999/11/22
Date: 1999-11-22T17:45:13+00:00	[thread overview]
Message-ID: <38398127.59E30D26@mail.com> (raw)
In-Reply-To: 81bt4v$7cr$1@nnrp1.deja.com

Robert Dewar wrote:
> 
> In article <3835CF7A.5604C6A3@mail.com>,
>   Mats Weber <matsw@mail.com> wrote:
> 
> > Actually, I have used pragma Elaborate(_All) maybe three times
> > since 1983. I have always let the compiler figure out an
> > elaboration order, which turned out to be just fine in almost
> > all cases with DEC Ada, Verdix and GNAT. I know this approach
> > is not striclty portable, but I don't care.
> 
> Well this is a bit like people not caring about seat belts in
> a car till they have a crash.

Well, the crash is not that bad, is it ? The worst thing you can get
(provided that no tasks started at elaboration time) is Program_Error at
some point before the main procedure is called by the environment task,
is that right ? If it is, then I can live with it.

And I am not saying that I advocate using my sloppy approach, I was just
saying that reasonable compilers do it right on reasonable code. At the
time I was writing the code, there was no GNAT to tell me where to put
the pragmas, and I don't think it is reasonable to expect programmers to
get the pragmas right without a tool helping them, especially in Ada 83
where there was just Elaborate and no Elaborate_All.




  parent reply	other threads:[~1999-11-22  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-17  0:00 generic package dilemma Riyaz Mansoor
1999-11-17  0:00 ` Matthew Heaney
1999-11-17  0:00   ` Mats Weber
1999-11-17  0:00     ` Matthew Heaney
1999-11-18  0:00       ` Robert A Duff
1999-11-18  0:00         ` Matthew Heaney
1999-11-18  0:00       ` Mats Weber
1999-11-18  0:00         ` Matthew Heaney
1999-11-19  0:00           ` Mats Weber
1999-11-19  0:00             ` Matthew Heaney
1999-11-19  0:00               ` Mats Weber
1999-11-22  0:00                 ` Robert Dewar
1999-11-22  0:00                   ` Larry Kilgallen
1999-11-23  0:00                     ` Robert Dewar
1999-11-22  0:00                   ` Mats Weber
1999-11-22  0:00                     ` Robert A Duff
1999-11-23  0:00                       ` Robert Dewar
1999-12-01  0:00                       ` Robert I. Eachus
1999-12-01  0:00                         ` Robert I. Eachus
1999-11-22  0:00                   ` Robert A Duff
1999-11-23  0:00                     ` Robert Dewar
1999-11-29  0:00                       ` Robert A Duff
1999-12-01  0:00                         ` Robert Dewar
1999-12-01  0:00                       ` Robert A Duff
1999-12-02  0:00                         ` Mats Weber
1999-12-03  0:00                           ` Robert Dewar
1999-12-03  0:00                             ` Ted Dennison
1999-12-04  0:00                               ` Robert Dewar
1999-12-03  0:00                             ` Robert A Duff
1999-12-06  0:00                               ` Robert Dewar
1999-11-22  0:00                   ` Mats Weber [this message]
1999-11-22  0:00                     ` Bryce Bardin
1999-11-23  0:00                     ` Robert Dewar
1999-11-19  0:00               ` Robert Dewar
1999-11-19  0:00                 ` Robert I. Eachus
1999-11-22  0:00                   ` Robert Dewar
1999-11-22  0:00                     ` Matthew Heaney
1999-11-19  0:00                 ` Matthew Heaney
1999-11-20  0:00                   ` Mats Weber
1999-11-19  0:00             ` Vladimir Olensky
1999-11-19  0:00       ` Robert Dewar
1999-11-18  0:00   ` Riyaz Mansoor
1999-11-19  0:00     ` Robert Dewar
1999-11-19  0:00   ` Robert Dewar
replies disabled

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