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_MSGID, PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7fc5da0a4cc955c X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: unconstrainded array question Date: 1998/09/19 Message-ID: <6u0dat$fjf$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 392713943 References: <36033452.12702502@SantaClara01.news.InterNex.Net> X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sat Sep 19 13:58:53 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-09-19T00:00:00+00:00 List-Id: In article <36033452.12702502@SantaClara01.news.InterNex.Net>, tmoran@bix.com (Tom Moran) wrote: > Since you gave no definition for whatever Object might be, it's a > little hard to tell what "This.xyz" might possibly be. If xyz is an > array, then it clearly must have bounds and it's range is defined. If > xyz is a type, and one with indefinite bounds, > then obviously you > can't use those undefined bounds as if they had values. As I often remind people, technical information that you read on a newsgroup like this can be wrong or misleading. This is an example. There are no array objects in Ada with "indefinite" or "undefined" bounds. All array objects are constrained and have well defined bounds, so yes, of course, if the type of Object is an array, you can use the 'Range attribute in this case (it is indeed the primary and most familiar use of the range attribute!) The *type* of an array object may be unconstrained, but of course, as in the original questioner's example, you apply the Range attribute to the object, not the type! Robert Dewar -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum