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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6e15e3f9aeb3d14a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-20 17:06:02 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!newsfeed.mathworks.com!portc03.blue.aol.com!newsfeed.skycache.com.MISMATCH!newsfeed1.cidera.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Anonymous array clarification.(Better idea, I think.) X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3B819E36.4144005A@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Mon, 20 Aug 2001 23:33:10 GMT X-Mailer: Mozilla 4.5 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:12155 Date: 2001-08-20T23:33:10+00:00 List-Id: McDoobie wrote: > > So if I say... > > type foo_array is array(1..N) of character; > > this would be an Object declaration. Then I would instantiate it > thusly.... > > bar_array : foo_array; > > correct? > > However if I say... > > some_chars : array(1..N) of character; > > this would be just a simple array declaration, with none of the Object > Oriented properties carried along with it. This has nothing to do with object orientedness. Bar_Array is a variable of type Foo_Array, and Some_Chars is a variable of an unnamed (anonymous) array type. > > And with the Object "foo_array" declared above, I could say ... > > type Upper_Case is subtype foo_array; > > and it should work? This will not work. Perhaps you mean subtype Upper_Case is Foo_Array; or maybe type Upper_Case is new Foo_Array; I can't tell what you're trying to accomplish here. > > Am I beginning to get the picture? Unfortunately, it doesn't look that way. -- Jeffrey Carter