comp.lang.ada
 help / color / mirror / Atom feed
From: stt@inmet.inmet.com
Subject: Re: "silly" (?) Ada semantics
Date: 7 Jun 90 17:27:00 GMT	[thread overview]
Message-ID: <20600047@inmet> (raw)
In-Reply-To: 1919@sparko.gwu.edu


Re: compile-time detectable constraint errors

One revision being considered for Ada9X is that
a class of constraint errors which are clearly
detectable at compile time ("statically" detectable)
be identified in the Reference Manual,
and that a validated compiler be required to flag them.

It is not clear whether the compiler should produce a Required Warning,
or actually reject the compilation unit.  If the compiler can reject
the compilation unit, then we may have to account for conditional
compilation in the Reference Manual as well.
This is because a reasonable use of conditional compilation
may be selecting two distinct algorithms, one of which would
include a statically detectable constraint error but only
in the cases when it would *not* be selected by a controlling
IF statement.

As usual, these issues are more complex than they first appear, and
the original design of the language considered many of these problems
and had to make a choice based on conflicting requirements.
Hindsight may justify making a different choice, but it should
not do so without fully reconsidering the original concerns.

S. Tucker Taft
Intermetrics, Inc.
Cambridge, MA  02138

      parent reply	other threads:[~1990-06-07 17:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-06-02 21:08 "silly" (?) Ada semantics Michael Feldman
1990-06-05  9:54 ` ken
1990-06-06 16:09   ` Michael Feldman
1990-06-06 22:27     ` Robert I. Eachus
1990-06-07 14:32       ` Michael Feldman
1990-06-06 18:12   ` Robert I. Eachus
1990-06-07 17:27 ` stt [this message]
replies disabled

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