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-Thread: 103376,693e247f5dca709d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: Matthew Heaney@MHEANEYIBMT43 Newsgroups: comp.lang.ada Subject: Re: How to use associative arrays in Ada 2005? References: <1164103903.240838.37230@j44g2000cwa.googlegroups.com> <1164152113.623461.130190@e3g2000cwe.googlegroups.com> <1164310051.811802.237400@l12g2000cwl.googlegroups.com> <14xluht6idlik$.1cxod3mnfvcfs.dlg@40tude.net> <1164567954.228842.32980@h54g2000cwb.googlegroups.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 26 Nov 2006 20:30:49 GMT NNTP-Posting-Host: 4.238.118.9 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1164573049 4.238.118.9 (Sun, 26 Nov 2006 12:30:49 PST) NNTP-Posting-Date: Sun, 26 Nov 2006 12:30:49 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news2.google.com comp.lang.ada:7702 Date: 2006-11-26T20:30:49+00:00 List-Id: "snoopysalive" writes: > Sadly, Matt's solution didn't work. The statement "Ages.Insert ("family > name", C, B);" brought a compilation error: "no selector 'Insert' for > private type "Ada.Containers.Indefinite_Hashed_Maps.Map" from instance > at line 16". I found out that no procedure "Insert(String, Cursor, > Boolean)" exists. But it exists a procedure "Insert(String, > Element_Type, Cursor, Boolean)". Yes, you're right. I was thinking of the definite form of the hashed map. The indefinite form doesn't include the operation I used in my example. Sorry for the confusion. > So, I'm trying to combine Matt's and Georg's ideas now. I'll write a > line, if I'd be successfull. Otherwise, I'll also write a line. ;-) Right, all you need to do is change my example to say: Ages.Insert (Key => "family name", New_Item => Str_Int_Maps.Empty_Map, Position => C, Inserted => B);