Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!drutx!mtuxo!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!zuring!jankok From: jankok@zuring.UUCP Newsgroups: net.lang.ada Subject: Re: anonymous array types and record components Message-ID: <283@zuring.UUCP> Date: Mon, 17-Feb-86 07:50:42 EST Article-I.D.: zuring.283 Posted: Mon Feb 17 07:50:42 1986 Date-Received: Wed, 19-Feb-86 01:01:47 EST References: <8602120210.AA01239@ucbvax.berkeley.edu> Reply-To: jankok@zuring.UUCP (Jan Kok) Organization: CWI, Amsterdam Lines: 33 Apparently-To: rnews@mcvax 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)