comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Bases 1.52
Date: Mon, 15 Sep 2003 00:17:44 GMT
Date: 2003-09-15T00:17:44+00:00	[thread overview]
Message-ID: <3F650511.1070902@attbi.com> (raw)
In-Reply-To: bk2rmc$olhm6$1@ID-25716.news.uni-berlin.de

Nick Roberts wrote:
> "Robert I. Eachus" <rieachus@attbi.com> wrote in message
> news:3F64B1B3.2070305@attbi.com...
> 
> 
>>But like unbounded string types, or a discriminated record
>>type without a default value for the discriminant, you must
>>provide an initial value
> 
> 
> An initial value is not required for an object of type
> Ada.Strings.Unbounded.Unbounded_String. It is initialised by default to an
> empty string [RM95 A.4.5.(73)]. I guess you meant "... like objects declared
> as being of an unconstrained subtype with no constraint, such as 'String',
> or of a discriminated record subtype which does not have default expressions
> for the discriminants and with no constraint, ...".

That is why I said unbounded string types--all lower case--not type 
Unbounded_String.  But I did make a mistake, I really meant to write 
unbounded array types, which is a lot clearer.


> Do you mean other than the term "indefinite"? [RM95 3.3(23), 3.7(26)]

Yes.  But it is really hard to express what I meant.  There are types 
whose subtype is indefinite, where you can either add a constraint when 
declaring an object, or provide an initial value.  But there are also 
indefinite types where you cannot provide a constraint, and must provide 
an initial value.  These are currently "types with unknown 
discriminants" all types with unknown discriminants are indefinite, but 
not all indefinite subtypes are types with unknown discriminants.

I think in one ARG discussion we called these types "really indefinite 
types" and in another discussion "initial value only types" but neither 
of those names is much shorter than "types with unknown discriminants." 
  (Notice that classwide types are not really types with unknown 
discriminants, but 3.3(29) defines them to be.)

This may seem to be much ado about nothing, but these types are those 
that cannot be subcomponents, so it is a pretty important group.

-- 
"As far as I'm concerned, war always means failure." -- Jacques Chirac, 
President of France
"As far as France is concerned, you're right." -- Rush Limbaugh




  reply	other threads:[~2003-09-15  0:17 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-02 18:59 Bases for the Design of a Standard Container Library for Ada Mário Amado Alves
2003-09-03 20:30 ` Warren W. Gay VE3WWG
2003-09-03 21:07   ` David C. Hoos
2003-09-04  2:19 ` Randy Brukardt
2003-09-04 11:56   ` Mário Amado Alves
2003-09-05  3:55     ` Randy Brukardt
2003-09-05  5:17       ` Matthew Heaney
2003-09-05 11:45         ` Amado Alves
2003-09-05 19:40           ` Randy Brukardt
2003-09-05 15:10         ` Martin Krischik
2003-09-07 18:03           ` Matthew Heaney
2003-09-08 12:54             ` Mário Amado Alves
2003-09-08 17:02 ` Bases 1.57 Martin Krischik
2003-09-08 17:07 ` Bases 1.58 Martin Krischik
2003-09-09 16:37 ` Bases 1.52 Martin Krischik
2003-09-10  7:49   ` Mário Amado Alves
2003-09-11 15:03     ` Martin Krischik
2003-09-12 10:58       ` Mário Amado Alves
2003-09-12 13:05         ` Martin Dowie
2003-09-12 17:49           ` maximum number of lines per spec (was: Bases 1.52) Mário Amado Alves
2003-09-13 12:18             ` Marin David Condic
2003-09-12 15:36         ` Bases 1.52 Martin Krischik
2003-09-14  6:51       ` Matthew Heaney
2003-09-14 14:32         ` Martin Krischik
2003-09-14 18:22         ` Robert I. Eachus
2003-09-14 22:56           ` Nick Roberts
2003-09-15  0:17             ` Robert I. Eachus [this message]
2003-09-14  6:45   ` Matthew Heaney
replies disabled

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