comp.lang.ada
 help / color / mirror / Atom feed
* Another question about types and subypes
@ 1986-08-14 22:12 Steven Holtsberg
  1986-08-14 22:23 ` Mark Biggar
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Holtsberg @ 1986-08-14 22:12 UTC (permalink / raw)



On page 3-15, section 3.5.4, the ARM says:

A type declaration of the form:

    type T is range L .. R;

is, by definition equivalent to the following declarations:

    type <integer_type> is new predefined_integer_type;
    subtype T is <integer_type> range <integer_type>(L) .. <integer_type>(R);

It then goes on to refer to T as a _type_ :
"The elaboration of the declaration of an integer _type_ ...".
However, the "equivalent" pair of declarations given does
_not_ declare a new type named T, is declares an anonymous
type (integer_type) and a _subtype_ T.

Are they lying, or are they just careless?

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

end of thread, other threads:[~1986-08-14 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-08-14 22:12 Another question about types and subypes Steven Holtsberg
1986-08-14 22:23 ` Mark Biggar

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