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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!wn14feed!worldnet.att.net!199.45.49.37!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny09.POSTED!0f19ed38!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <41547dae$0$91007$39cecf19@news.twtelecom.net> Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: <0b%4d.2815$M45.1912@trndny09> Date: Fri, 24 Sep 2004 20:10:36 GMT NNTP-Posting-Host: 151.203.236.52 X-Complaints-To: abuse@verizon.net X-Trace: trndny09 1096056636 151.203.236.52 (Fri, 24 Sep 2004 16:10:36 EDT) NNTP-Posting-Date: Fri, 24 Sep 2004 16:10:36 EDT Xref: g2news1.google.com comp.lang.ada:4131 Date: 2004-09-24T20:10:36+00:00 List-Id: "Matthew Heaney" wrote in message news:41547dae$0$91007$39cecf19@news.twtelecom.net... > Note that (as Randy alluded to) there's still a chance the ARG will add > something like reference types to Ada. It would be declared something > like: > > function Update_Element > (Container : in Map; > Key : in Key_Type) return access Element_Type; > > Then you could say: > > Update_Element (M, K).all := 42; I still like the idea of adding "()" and "():=" operators to Ada. Then you could say: M(K) := 42; This is clearer, and it makes absolutely no assertions as to how containers represent their elements.