comp.lang.ada
 help / color / mirror / Atom feed
From: pvl@cix.compulink.co.uk ("Program Validation L")
Subject: The 'BASE Attribute
Date: Fri, 25 Nov 1994 10:22:44 GMT
Date: 1994-11-25T10:22:44+00:00	[thread overview]
Message-ID: <CztJHx.GxE@cix.compulink.co.uk> (raw)

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.

However, both the Alsys and DEC Ada compilers accept both T'DELTA and 
T'BASE'DELTA, which leads us to suppose our understanding of the LRM is 
incorrect.



             reply	other threads:[~1994-11-25 10:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-25 10:22 "Program Validation L" [this message]
1994-11-29  4:52 ` The 'BASE Attribute Tucker Taft
  -- strict thread matches above, loose matches on Subject: below --
1994-11-26  8:34 Dave Papay M/S 7G32 x2791
replies disabled

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