From: mheaney@ni.net (Matthew Heaney)
Subject: Re: Design of Ada.Strings.Bounded
Date: 1997/07/14
Date: 1997-07-14T00:00:00+00:00 [thread overview]
Message-ID: <mheaney-ya023680001407970241320001@news.ni.net> (raw)
In-Reply-To: EDA684.Dnr@thomsoft.com
In article <EDA684.Dnr@thomsoft.com>, kst@sd.aonix.com (Keith Thompson) wrote:
>I do wonder, though, why the maximum length of a Bounded_String was
>made a generic parameter rather than a discriminant. Thus, rather than
>Was this approach considered? If so, why was it rejected?
The reasons for the choice are discussed in the Rationale.
Also, from AARM 95 A.4.4 (1.b):
Reason: The bound of a bounded-length string is specified as a parameter to
a generic, versus as the value for a discriminant, because of the
inappropriateness of assignement and equality of discriminated types for
the copying and comparison of bounded strings.
--------------------------------------------------------------------
Matthew Heaney
Software Development Consultant
<mailto:matthew_heaney@acm.org>
(818) 985-1271
next prev parent reply other threads:[~1997-07-14 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-11 0:00 Design of Ada.Strings.Bounded Dale Stanbrough
1997-07-11 0:00 ` Matthew Heaney
1997-07-13 0:00 ` Keith Thompson
1997-07-14 0:00 ` Matthew Heaney [this message]
1997-07-16 0:00 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox