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,9f842cdf16abf4b9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s33g2000prh.googlegroups.com!not-for-mail From: Matthew Heaney Newsgroups: comp.lang.ada Subject: Re: Ada.Containers.Indefinite_Hashed_Maps Date: 26 Apr 2007 09:12:30 -0700 Organization: http://groups.google.com Message-ID: <1177603950.438814.247820@s33g2000prh.googlegroups.com> References: <1177510391.733055.133060@n35g2000prd.googlegroups.com> NNTP-Posting-Host: 66.162.65.129 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1177603959 23776 127.0.0.1 (26 Apr 2007 16:12:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Apr 2007 16:12:39 +0000 (UTC) In-Reply-To: <1177510391.733055.133060@n35g2000prd.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: s33g2000prh.googlegroups.com; posting-host=66.162.65.129; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news1.google.com comp.lang.ada:15312 Date: 2007-04-26T09:12:30-07:00 List-Id: On Apr 25, 10:13 am, markp wrote: > I am using a hash table via Ada.Containers.Indefinite_Hashed_Maps to > hash an array of records. We have a predfined array of records called > X. The insert function works fine by passing in X(1), X(2), etc. I am > having trouble with the syntax of the Update call, specifically the > Process parameter. Could somebody provide a quick snippet of code that > show how to setup this code and how the procedure actually looks to > update the data? Given map M and cursor C you would say: declare procedure Process (K : KT; E : in out ET) is begin ... -- modify E as necessary end; begin M.Update_Element (C, Process'Access); end;