comp.lang.ada
 help / color / mirror / Atom feed
From: arny@wayback.UUCP
Subject: Re: 'Base and Staticness
Date: Mon, 13-Apr-87 08:45:48 EST	[thread overview]
Date: Mon Apr 13 08:45:48 1987
Message-ID: <1132@wayback.UUCP> (raw)
In-Reply-To: 12293281394.11.MENDAL@Sierra.Stanford.EDU

In article <12293281394.11.MENDAL@Sierra.Stanford.EDU>, Mendal@SIERRA.STANFORD.EDU (Geoff Mendal) writes:
> Is the following package specification semantically valid?
> 
>   package Static_Test is
>     subtype Non_Static is Integer range Integer (1) .. 100;
> 
>     type Must_Be_Static is range Non_Static'Base'First .. 10;
>   end Static_Test;
> 
> Read the ARM, 3.3.3(8..9) and 4.9(1..2, 8, 11).


   Forgive me if I missed something, but after checking the LRM sections you
mentioned above (especially 4.9:11), I believe the subtype "Non_Static" is
indeed static.  This subtype is formed by imposing a static range constraint
(1..100) on a scalar base type (Integer).  (Note that enclosing the numeral 1
in parentheses does not make it non-static according to 4.9:2,4,10).
   It follows that the declaration of "Must_Be_Static" is then valid according
to 4.9:8.

   Comments?

Arny B. Engelson   {ihnp4|bonnie|clyde}!wayback!arny   (201) 386-4816
AT&T Bell Laboratories, Whippany, N.J.

       reply	other threads:[~1987-04-13 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12293281394.11.MENDAL@Sierra.Stanford.EDU>
1987-04-13 13:45 ` arny [this message]
1987-04-14  8:48   ` 'Base and Staticness deller
replies disabled

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