comp.lang.ada
 help / color / mirror / Atom feed
From: mfeldman@seas.gwu.edu (Michael Feldman)
Subject: irregularities regarding attributes
Date: 14 Jun 90 17:11:11 GMT	[thread overview]
Message-ID: <1958@sparko.gwu.edu> (raw)

- We know that scalar types have lots of attributes, e.g.
   'first and 'last 

- We know that array types have attributes 'first and 'last as well.

In the case of the array type, if we have 
   type Vector is array (1..50) of float
   V: Vector ; 
then
   Vector'First, Vector'Last, V'First, V'last
are all permitted

but given a scalar type, say
   type Little is range -10..10;
   L : Little;

why are Little'First and Little'last defined, but not L'first and L'Last?

This is one of those maddening little irregularities for which there is
undoubtedly a rationale somewhere, but it's not obvious. Can someone
comment authoritatively? Thanks!
---------------------------------------------------------------------------
Prof. Michael Feldman
Department of Electrical Engineering and Computer Science
The George Washington University
Washington, DC 20052
+1-202-994-5253
mfeldman@seas.gwu.edu
---------------------------------------------------------------------------

             reply	other threads:[~1990-06-14 17:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-06-14 17:11 Michael Feldman [this message]
1990-06-15 18:27 ` irregularities regarding attributes stt
replies disabled

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