comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Newbe Q: generic array not working OK
Date: 2000/03/15
Date: 2000-03-15T16:22:05+00:00	[thread overview]
Message-ID: <38CFB8AD.FE3B76A0@averstar.com> (raw)
In-Reply-To: Pine.A41.3.96-heb-2.07.1000314003559.41236A-100000@pluto.mscc.huji.ac.il

Ehud Lamm wrote:
> 
> Maybe it is worth mentioning that the distinction between unconstrained
> and constrained generic array paramters was introduced in Ada95.
> The interested reader can check the Rational, for the rational of this
> decision (tightening the contract model).

Not quite.  Ada 83 and Ada 95 both distinguish constrained generic
array parameters from unconstrained ones.  Ada 95 introduced
the distinction between "definite" private and "indefinite" private (aka "<>")
formal types.  Also, in Ada 95, array type matching is done statically
(at compile-time) rather than involving any run-time checks.

Here is a quote from Ada 83, 12.3.4(2): "... the formal type and the
actual type must be either both constrained or both unconstrained."

> 
> Ehud Lamm mslamm@mscc.huji.ac.il
> http://purl.oclc.org/NET/ehudlamm <== My home on the web
> Check it out and subscribe to the E-List- for interesting essays and more!

-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  reply	other threads:[~2000-03-15  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-12  0:00 Newbe Q: generic array not working OK Erik Pessers
2000-03-13  0:00 ` Jeffrey D. Cherry
2000-03-14  0:00   ` Ehud Lamm
2000-03-15  0:00     ` Tucker Taft [this message]
2000-03-13  0:00 ` swhalen
replies disabled

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