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!news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!news.tiscali.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: How to use associative arrays in Ada 2005? From: Georg Bauhaus In-Reply-To: <1164310051.811802.237400@l12g2000cwl.googlegroups.com> References: <1164103903.240838.37230@j44g2000cwa.googlegroups.com> <1164152113.623461.130190@e3g2000cwe.googlegroups.com> <1164310051.811802.237400@l12g2000cwl.googlegroups.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1164310806.31269.19.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Thu, 23 Nov 2006 20:40:07 +0100 NNTP-Posting-Date: 23 Nov 2006 20:40:03 CET NNTP-Posting-Host: 4cc72581.newsspool4.arcor-online.net X-Trace: DXC=d4jS15 On Thu, 2006-11-23 at 11:27 -0800, snoopysalive wrote: > The statement "Ages.Insert("family name",Insert("name",23));" doesn't > work. Think about what Insert returns, if anything. Programs written in Ada are less frequently filled with abbreviations :-) > So, how is it possible to do something like this in C++: > "... > map> ages; > ages["family name"]["name"] = 23; > ..."