From: Dave Papay M/S 7G32 x2791 <papayd@GTEWD.MTV.GTEGSC.COM>
Subject: Re: The 'BASE Attribute
Date: Sat, 26 Nov 1994 00:34:11 PST
Date: 1994-11-26T00:34:11-08:00 [thread overview]
Message-ID: <0098804D.E588BAC0.46@gtewd.mtv.gtegsc.com> (raw)
Program Validation L <pvl@CIX.COMPULINK.CO.UK> writes:
>We are confused by the meaning of the 'BASE attribute. For example, the
>LRM states that a fixed point type declaration of the form:
>
>type T is delta D range L .. R;
>
>is, by definition, equivalent to the following declarations:
>
>type fixed_point_type is new predefined_fixed_point_type;
>subtype T is fixed_point_type
> range fixed_point_type(L) .. fixed_point_type(R);
>
>We would therefore expect T to denote the (implicitly declared) subtype,
>and T'BASE to denote the anonymous type fixed_point_type. This would mean
>that T'DELTA is valid, whilst T'BASE'DELTA is invalid, since P'DELTA is
>only defined for fixed point subtypes.
T'BASE'DELTA is legal, since in 3.3(4) the LRM states: "A type is a subtype
of itself..."
Also, although the description for the 'DELTA attribute in 3.5.10(4) states
that it "Yields the value of the delta specified in the fixed accuracy
definition for the *subtype* T" (emphasis added), 3.5.10(2) states that the
attributes listed below (which includes 'DELTA) are define "for every fixed
point *type or subtype* T" (again, emphasis added). This paragraph also
explains why T is referred to as a subtype in some contexts, and as a type in
others.
Hope this helps.
| |
David Papay | o |
papay@acm.org (preferred) | ^/--- | <insert your favorite disclaimer here>
dpapay@aol.com (alternate) | /> |
| |
| fleche! |
next reply other threads:[~1994-11-26 8:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-11-26 8:34 Dave Papay M/S 7G32 x2791 [this message]
-- strict thread matches above, loose matches on Subject: below --
1994-11-25 10:22 The 'BASE Attribute "Program Validation L"
1994-11-29 4:52 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox