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 Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Array of Strings References: <0e021c61-535a-4935-95ad-2a241fa7302f@e53g2000hsa.googlegroups.com> <2VaCk.356477$yE1.321489@attbi_s21> <5a8cb0df-b16a-45d0-a03e-146ebea83e4d@d77g2000hsb.googlegroups.com> In-Reply-To: <5a8cb0df-b16a-45d0-a03e-146ebea83e4d@d77g2000hsb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1222276708 12.201.97.213 (Wed, 24 Sep 2008 17:18:28 GMT) NNTP-Posting-Date: Wed, 24 Sep 2008 17:18:28 GMT Organization: AT&T ASP.att.net Date: Wed, 24 Sep 2008 17:18:28 GMT Xref: g2news2.google.com comp.lang.ada:7811 Date: 2008-09-24T17:18:28+00:00 List-Id: jedivaughn wrote: > can anyone show me an example of using this to put string data into > the array and pulling it back out. > > generic > > type Element_Type is (<>); -- everything in the list is of this > type > type range_array is (<>); -- the index of the array if of this > type > > -- ads file of package > package final is > type recd is private; > > > private To a client of an instantiation of Final, there is no array. There's only type Recd. The operations defined for an object of type Recd for the client include assignment, "=", "/=", in, not in, and some attributes such as 'Size and 'Address. Have I missed any? Since there are no operations to put or get string data into a Recd or an instantiation of Final, I cannot show you how to do that. (OK, I could show you how to do it using unchecked conversion or an address overlay, but that's not what you're asking about.) -- Jeff Carter "Crucifixion's a doddle." Monty Python's Life of Brian 82