comp.lang.ada
 help / color / mirror / Atom feed
* anonymous array types and record components
@ 1986-02-12  1:54 Doug Bryan
  1986-02-17 12:50 ` jankok
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Bryan @ 1986-02-12  1:54 UTC (permalink / raw)



Hi all...

One of my students asked me a question the other day that I could not
answer.  Since this does not happen too often, I got out a few reference
books and started digging.  I still don't have a good answer!  Here is
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?

Any hints would be appreciated.

doug bryan
-------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1986-02-17 12:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-02-12  1:54 anonymous array types and record components Doug Bryan
1986-02-17 12:50 ` jankok

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