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,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) References: <1700922.2nPlMsa4Ny@linux1.krischik.com> <1636756.M7hCqjsVMv@linux1.krischik.com> <415c36c0$0$91010$39cecf19@news.twtelecom.net> <4c2ec8a8.0410012335.dcf9001@posting.google.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 Oct 2004 13:40:22 GMT NNTP-Posting-Host: 64.185.133.124 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1096724422 64.185.133.124 (Sat, 02 Oct 2004 06:40:22 PDT) NNTP-Posting-Date: Sat, 02 Oct 2004 06:40:22 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:4565 Date: 2004-10-02T13:40:22+00:00 List-Id: slatyb@yahoo.com (K) writes: > Because it makes an enormous difference in the cost of developing and > maintaining code. It's much easier to write and maintain a table like > this: > > dbmap order_map; > > order_map.insert("ORDER.NUMBER", &Order::number) > .insert("ORDER.CUSTOMER", &Order::customer_number) > .insert("ORDER.ACCEPTED", &Order::acceptance_date) > .insert("ORDER.PROMISED", &Order::promised_ship_date) > ... procedure Insert (Map : in out Map_T; Key : in String; Process : not null access function (Order : access Order_T) return Integer); declare M : Map_T; begin M.Insert ("ORDER.NUMBER", Number'Access); M.Insert ("ORDER.CUSTOMER", Customer_Number'Access); ...