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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d06abf6ce01ec73d X-Google-Attributes: gid103376,public From: "Sandeep V. Kharkar" Subject: Re: Newbie question (Range Specifiers) Date: 1996/06/20 Message-ID: <31C99793.1E05@vzcorp.com>#1/1 X-Deja-AN: 161245961 references: <31C884CE.24DD@vzcorp.com> content-type: text/plain; charset=us-ascii organization: VZ CORP mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (Win95; I) Date: 1996-06-20T00:00:00+00:00 List-Id: Sandeep V. Kharkar (I Myself) wrote: > RE :: grammer rule --> > range_spec ::= name ' range ( static_expression ) > but I found no examples of the use of this grammer rule. > What is this syntax used for ?? In response I got two mail replies... For the sake of completeness here's a summary of the replies... This is related to multidimensional arrays. The argument between brackets specifies which dimension is concerned. EXAMPLE :: A : array (1..2, 1..5) of integer; A'range(2) = 1..5 Similarly the attributes 'FIRST, 'LAST and 'LENGTH also have subscripted versions for use with multi-dimensional arrays. My ThanX to Mark Biggar and Laurent Gasser. -- ~Sandeep skharkar@vzcorp.com http://www.cs.usu.edu/students/SandeepKharkar/index.html "To know recursion you must first know recursion !!"