🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.ada
Article #910

Another question about types and subypes

#910
From: Steven Holtsberg
Date: Thu, 14 Aug 1986 22:12
19 lines
1178 bytes
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?
Technical Details
Message-ID: <2956@sdcrdcf.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!hplabs!sdcrdcf!steve

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!hplabs!sdcrdcf!steve
From: steve@sdcrdcf.UUCP (Steven Holtsberg)
Newsgroups: net.lang.ada
Subject: Another question about types and subypes
Message-ID: <2956@sdcrdcf.UUCP>
Date: Thu, 14-Aug-86 18:12:31 EDT
Article-I.D.: sdcrdcf.2956
Posted: Thu Aug 14 18:12:31 1986
Date-Received: Fri, 15-Aug-86 06:38:00 EDT
Reply-To: steve@sdcrdcf.UUCP (Steven Holtsberg)
Organization: System Development Corporation R&D, Santa Monica
Lines: 19