comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: Elaboration in GNAT
Date: 10 Jan 2002 20:49:32 -0800
Date: 2002-01-11T04:49:32+00:00	[thread overview]
Message-ID: <5ee5b646.0201102049.482cf72e@posting.google.com> (raw)
In-Reply-To: wcc1ygx50tn.fsf@shell01.TheWorld.com

Robert A Duff <bobduff@shell01.TheWorld.com> wrote in message news:<wcc1ygx50tn.fsf@shell01.TheWorld.com>...
> True, but is it not also the case that these bugs are 
> relatively
> innocuous?  That is, if you forget your pragmas, then 
> your program
> usually blows up during elaboration (and you fix it), or 
> else it doesn't
> blow up (using this compiler).  That is, it's more of a 
> *portability*
> problem, than a problem of programs malfunctioning when 
> users use them.

In a large program, one with thousands of units, and millions of lines
of code, it can take weeks or months
of fiddling to find all the pragma Elaborate's that are
required, when you have to do a complete build to find
just one of them. Often in such a situation it may be
better to aim for the static solution off the bat.

> Ideally, all elaboration problems would be detected at 
> compile time (or
> link time), and there would be no constraints on the 
> structure of a
> program due to elaboration-order issues.  Ada (even with 
> GNAT's default
> mode) does not achieve that, unfortunately.

I understand that this is theoretically true, but in practice with
GNAT's static model problems do not arise.
We have not had one customer using the static model ever
run into any elaboration problems at all. So from a 
pragmatic point of view, the problem is solved.



  reply	other threads:[~2002-01-11  4:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-28 12:34 Elaboration in GNAT Frode Tenneboe
2001-11-28 18:13 ` Mark Johnson
2001-11-29  3:44   ` Robert Dewar
2001-11-29 13:30     ` Stephen Leake
2001-11-28 19:25 ` Robert Dewar
2002-01-04 13:21   ` Frode Tenneboe
2002-01-04 15:07     ` Matthew Heaney
2002-01-05  0:43       ` Robert Dewar
2002-01-05  0:50       ` Robert Dewar
2002-01-07 17:22         ` Mark Johnson
2002-01-08  0:00           ` Robert Dewar
2002-01-10 21:54         ` Robert A Duff
2002-01-11  4:49           ` Robert Dewar [this message]
2002-01-11 13:35             ` Robert A Duff
2002-01-11 19:18               ` Robert Dewar
2002-01-16 11:48           ` Arnaud Charlet
2002-01-05  0:40     ` Robert Dewar
2002-01-07 13:28       ` Frode Tenneboe
2002-01-11 19:25         ` Robert Dewar
2001-11-29 13:13 ` Stephen Leake
2001-11-29 13:17 ` Stephen Leake
2001-11-30 12:44   ` Simon Wright
replies disabled

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