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,74d953d10520ed5e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-26 10:18:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!peernews-us.colt.net!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3ED24C46.6080208@spam.com> From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: using charles library References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 26 May 2003 17:16:08 GMT NNTP-Posting-Host: 63.184.16.231 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1053969368 63.184.16.231 (Mon, 26 May 2003 10:16:08 PDT) NNTP-Posting-Date: Mon, 26 May 2003 10:16:08 PDT Xref: archiver1.google.com comp.lang.ada:37804 Date: 2003-05-26T17:16:08+00:00 List-Id: Roman V. Isaev wrote: > > I wonder is there any package easier to use? I only want two > functions, something like store(key,value) and lookup(key), that's > all, without 20+ string declaration voodoo... Grrrrr. I miss perl's > associative arrays. You might want to look at the PragmAda Reusable Components, specifically PragmARC.Skip_List_Unbounded. You'd have to declare a record type containing your Key and Value fields, and comparison operations ("=" and "<") for the type that only compare the Key Field, but it still seems a lot simpler than what you've described. You'd then use Insert and Search. The PragmAda Reusable Components are available from http://home.earthlink.net/~jrcarter010/pragmarc.htm -- Jeff Carter "Spam! Spam! Spam! Spam! Spam! Spam! Spam! Spam!" Monty Python's Flying Circus