From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!seas.gwu.edu!mfeldman From: mfeldman@seas.gwu.edu (Michael Feldman) Newsgroups: comp.lang.ada Subject: irregularities regarding attributes Message-ID: <1958@sparko.gwu.edu> Date: 14 Jun 90 17:11:11 GMT Reply-To: mfeldman@seas.gwu.edu (Michael Feldman) Organization: The George Washington University, Washington D.C. List-Id: - 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 ---------------------------------------------------------------------------