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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ee10ec601726fbf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-28 00:59:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!typhoon1.gnilink.net.POSTED!not-for-mail Message-ID: <3BDBBAAF.2020306@mail.com> From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.5+) Gecko/20011027 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: why not References: <3BC30674.BA88AAB6@brighton.ac.uk> <9pvv3t$ves$1@news.huji.ac.il> <3BC5D730.DA950CC7@boeing.com> <9q4pa7$1ad$1@nh.pace.co.uk> <3BC6ACC8.23EF21BC@free.fr> <3BC71F54.1FFE78FA@boeing.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 28 Oct 2001 07:58:44 GMT NNTP-Posting-Host: 151.202.54.248 X-Complaints-To: business-support@verizon.com X-Trace: typhoon1.gnilink.net 1004255924 151.202.54.248 (Sun, 28 Oct 2001 02:58:44 EST) NNTP-Posting-Date: Sun, 28 Oct 2001 02:58:44 EST Xref: archiver1.google.com comp.lang.ada:15308 Date: 2001-10-28T07:58:44+00:00 List-Id: Jeffrey Carter wrote: > This is an excellent argument *against* the BCs. Maybe in C++ the > implicit instantiation alleviates this, or maybe C++ people are > masochists, but in Ada it's unacceptable for a library to be so > complicated that it takes hours to find and instantiate a list, and even > then not be sure you've got what you need without testing. C++: //////////////////////////////////////////////////////////////// // Read a list of integers and write them in reverse order #include // for list #include // for copy #include // for cin and cout #include // for ostream_iterator #include // for front_inserter using namespace std; int main() { list a_list; copy(istream_iterator(cin), istream_iterator(), front_inserter(a_list)); copy(a_list.begin(), a_list.end(), ostream_iterator(cout, "\n")); } /////////////////////////////////////////////////////////////////