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,5fe352a7b58a0dd6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail From: mheaney@on2.com Newsgroups: comp.lang.ada Subject: Re: Bye, bye? Date: 9 Feb 2005 11:04:12 -0800 Organization: http://groups.google.com Message-ID: <1107975852.720640.192140@f14g2000cwb.googlegroups.com> References: <36atatF4uinkuU1@individual.net><87acqmekel.fsf@insalien.org> <36dncgF5084neU1@individual.net> NNTP-Posting-Host: 66.162.65.162 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1107975856 3625 127.0.0.1 (9 Feb 2005 19:04:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Feb 2005 19:04:16 +0000 (UTC) In-Reply-To: <36dncgF5084neU1@individual.net> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: f14g2000cwb.googlegroups.com; posting-host=66.162.65.162; posting-account=Zl1UPAwAAADEsUSm1PMMiDjihtBlZUi_ Xref: g2news1.google.com comp.lang.ada:8213 Date: 2005-02-09T11:04:12-08:00 List-Id: Wes Groleau wrote: > > But much of what I do depends on hashes > (associative arrays), which are built-in to perl. > Plus I attach the hash to a DBM file. > > To do that in Ada, I'd have to not only upgrade Xcode > (not an option right now) and install Ada (easy, but > requires Xcode), but I'd also have to find or build > a hash package (not hard) and/or a DBM binding (a little > harder). Associative arrays will be included in the next version of Ada, as part of the standard container library: ada.containers.hashed_maps ada.containers.indefinite_hashed_maps There will also be an ordered version (which does the same thing as the hashed version, but with a different time complexity; it's also a bit simpler to instantiate): ada.containers.ordered_maps ada.containers.indefinite_ordered_maps There are also hashed and ordered sets (for use when you don't need a separate key and element). You can get a reference implementation in the ai302 subdirectory at the charles.tigris.org website. Look for the files named a-c*.ad[sb] . -Matt