comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com
Subject: Re: GNAT Opinions
Date: 1999/01/07
Date: 1999-01-07T00:00:00+00:00	[thread overview]
Message-ID: <771ben$saa$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 36910C32.1A0543E7@magic.fr

In article <36910C32.1A0543E7@magic.fr>,
  Pascal MALAISE <malaise@magic.fr> wrote:

> gnat compiling policy is restrictive, and despite the
> *nice* gnatchop, it is difficult to maintain both
> versions with unique sources. It is  difficult to insert
> gnat compilation within an existing (and Verdix oriented)
> ada CASE  environment.

Actually this is fairly straightforward, but it is
definitely the sort of thing on which many users need help,
we have helped a number of our supported customers do
exactly this, and there are several succesful approaches
that can be used, depending on issues such as whether or
not preprocessing is used.


> gnat has some (specific or ada 95?) constraints on
> representation clauses which have to be defined before
> the usage of the type which forbids to
> put them in private parts.

Just to be clear here, it is fine to put rep clauses in
private parts, the prohibition is that a rep clause cannot
come after the type is frozen. The freezing rules are
actually pretty similar in Ada 83 and Ada 95.

Adapting and dealing with problematic rep clauses is
certainly one of the major support activities for us in
dealing with legacy code. In our experience, the problem is
often neither with GNAT nor with Ada 95, it is just that
the original code is plain wrong, and was erroneously
accepted by the Ada 83 compiler, or it was implementation
dependent code that depended, e.g. on a particular
implementation of the Size attribute.

Robert Dewar
Ada Core Technologies

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  parent reply	other threads:[~1999-01-07  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-23  0:00 GNAT Opinions choboy
1998-12-23  0:00 ` Bob
1998-12-24  0:00   ` Pat Rogers
1998-12-25  0:00     ` dewarr
1998-12-27  0:00       ` endian-independent rep clauses (was Re: GNAT Opinions) Pat Rogers
1998-12-28  0:00         ` dewar
1998-12-26  0:00 ` GNAT Opinions Steven Hovater
1998-12-28  0:00   ` dewar
1999-01-04  0:00 ` Pascal MALAISE
1999-01-07  0:00   ` Michael F Brenner
1999-01-07  0:00   ` dewar [this message]
1999-01-07  0:00   ` Steven Hovater
replies disabled

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