comp.lang.ada
 help / color / mirror / Atom feed
From: jankok@zuring.UUCP
Subject: Re: anonymous array types and record components
Date: Mon, 17-Feb-86 07:50:42 EST	[thread overview]
Date: Mon Feb 17 07:50:42 1986
Message-ID: <283@zuring.UUCP> (raw)
In-Reply-To: 8602120210.AA01239@ucbvax.berkeley.edu

In article <8602120210.AA01239@ucbvax.berkeley.edu> info-ada@ucbvax.UUCP writes:
>the question...
>
>	X : array (1 .. 10) of Integer;
>
>Using an anonymous array type for an object declaration is valid.
>
>	type R is record
>	    X : array (1 .. 10) of Integer;
>	  end record;
>
>Using an anonymous array type for the component of a record is invalid.
>Why?  What is the rational for disallowing anonymous array types
>for record components?

The possibility to declare anonymous array types inside a
record types was only removed in a very late stage of the 
Ada language development, it was still present in the 1980
definition.
The following justification is not mine and I do not say that
it clears the question completely. I quote from a paper 
distributed at the Ada-Europe 1982 Conference (joint with AdaTEC)
held in Brussels (you all know now that 's in Belgium). It is
"Summary of language changes" by Ben Brosgol:
    To avoid the semantic complexities of nested type definitions,
    array type definitions may no longer be used in the declaration
    of record components.  (A named array type must be explicitly
    introduced by the programmer instead.)
-- 
jan kok, cwi (afd. nw), amsterdam, nederland
UUCP: {seismo, decvax, philabs, okstate, garfield}!mcvax!zuring!jankok
---------------------------------------------------------------
    "Assembling of Japanese bicycle require peace of mind." (Pirsig)

      reply	other threads:[~1986-02-17 12:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1986-02-12  1:54 anonymous array types and record components Doug Bryan
1986-02-17 12:50 ` jankok [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