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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5d71,304c86061dc69dba X-Google-Attributes: gidf5d71,public X-Google-Thread: 109fba,304c86061dc69dba X-Google-Attributes: gid109fba,public X-Google-Thread: 1014db,304c86061dc69dba X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,5cb36983754f64da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-08 07:43:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.lang.java Subject: Re: No call for Ada (was Re: Announcing new scripting/prototyping language) Date: Sun, 08 Feb 2004 13:57:07 +0100 Organization: AdaCL Message-ID: <1473836.Gkd0eIM0hM@linux1.krischik.com> References: <20040206174017.7E84F4C4114@lovelace.ada-france.org> <54759e7e.0402071124.322ea376@posting.google.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1076254831 00 31380 d0QHGeHJ3t5LSeYC 040208 15:40:31 X-Complaints-To: usenet-abuse@t-online.de X-ID: VTVeNuZcweUDnqHdNPGNzNz4XnKQIEedYCA7cqUpqj9dKem60vIwrz User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:5339 comp.lang.c:21144 comp.lang.c++:18127 comp.lang.java:2768 Date: 2004-02-08T13:57:07+01:00 List-Id: Ludovic Brenta wrote: > Not automatically. You would define new containers explicitly for A > and B, using generics; see for example the Booch components[1] or the > Charles library[2], which is modelled after the C++ STL. If you want > polymorphic containers, you store pointers in them. > [1] http://www.pogner.demon.co.uk/components/bc/case-study.html > [2] http://home.earthlink.net/~matthewjheaney/charles/ AdaCL (adacl.sf.net) has polymorphic containers whichout (exposed) pointers - that is somthing C++ can't do ;-) because C++'s RTTI is only a cheap excuse compared with Ada's tags. For the C++ programmes: If you copy contruct a class in Ada then Ada will use the tag of the class to determine the actual child class and copy that instead of the currently visible prarent view of the class. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com