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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,693e247f5dca709d,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j44g2000cwa.googlegroups.com!not-for-mail From: "snoopysalive" Newsgroups: comp.lang.ada Subject: How to use associative arrays in Ada 2005? Date: 21 Nov 2006 02:11:43 -0800 Organization: http://groups.google.com Message-ID: <1164103903.240838.37230@j44g2000cwa.googlegroups.com> NNTP-Posting-Host: 217.227.14.237 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1164103908 17351 127.0.0.1 (21 Nov 2006 10:11:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 21 Nov 2006 10:11:48 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.02 (Macintosh; PPC Mac OS X; U; de),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j44g2000cwa.googlegroups.com; posting-host=217.227.14.237; posting-account=1NtCpw0AAACqUfB6fMELOcl42bUe9ocw Xref: g2news2.google.com comp.lang.ada:7596 Date: 2006-11-21T02:11:43-08:00 List-Id: Hi! Can anybody explain me how to use associative arrays in Ada 2005? I mean hashes like in Perl. Some background: I'm a student of Computational Linguistics and try to get away from Perl which I find not efficient enough (at my university, Perl is the standard language used by the professors). In my opinion, C++ is cool but Ada's syntax is better to avoid dirty code. So, when I say "hash", I mean something Perl-like like "$hashname{key1}{key2} = 'something' ". Or something C++-like like "map hashname; hashname["key1"] = 42;". Is there anything similar in Ada 2005, too? I bought the book "Programming in Ada 2005" by John Barnes but I don't understand the author's way of explaining a programming language (for me, the book is more confusing than explaining). Or does anybody know a good tutorial similar to the lots of C- and Perl-tutorials? I found many Ada-tutorials but most of them just list the contents of the built-in packages and don't explain how to use them. As a beginner this is confusing. Thanks for every answer! CU, Matthias