comp.lang.ada
 help / color / mirror / Atom feed
* irregularities regarding attributes
@ 1990-06-14 17:11 Michael Feldman
  1990-06-15 18:27 ` stt
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Feldman @ 1990-06-14 17:11 UTC (permalink / 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
---------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1990-06-15 18:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-06-14 17:11 irregularities regarding attributes Michael Feldman
1990-06-15 18:27 ` stt

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