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: <6u0e0k$gd2$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 392724976 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 14:10:29 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 , WishList@2600.com (Technobabble) wrote: > 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. > > Greetings Tom, > > xyz is an unconstrained array that is declared with a discriminant to > constrain it. Since it is of type unconstrained array I just want to know > if the RANGE attribute works eg. in a loop. I guess that you are saying > YES it does since it does have bounds. The question is if I have an > unconstrained array then I can declare many objects of that type with > different ranges, so will the RANGE attribute then return different ranges > for different objects. Is this legal? > It makes sense to me that you are correct. Also, Barnes is confusing on > the subject, page 125 of second edition, last paragraph on this topic. > > Richmond I strongly suggest that you post COMPLETE examples. When you are writing at a vague level and don't know the syntax of the language precisely, let alone the semantics, it gets VERY hard to guess what your misconceptions might be. You will find that you get much better results if (a) you write a complete program (b) you compile it (c) you try to figure out the error messages you get (d) if you can't figure out the error messages, post the ENTIRE (smallest possible) program that generates the error messages, and ask. I often find that students think they know something and so they pose a question in a garbled form, that depends on this knowledge, the only trouble is, the knowledge happens to be wrong. If you don't post a complete example, you may easily have the phenomenon of people being confused by what you write, and then adding to the confusion by answering something different than what you thought you were asking. -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum