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-Thread: 103376,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!teleglobe.net!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Robert Kawulak" Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: Sun, 3 Oct 2004 21:35:22 +0200 Organization: tp.internet - http://www.tpi.pl/ Message-ID: References: <41547dae$0$91007$39cecf19@news.twtelecom.net> <1g2d9xmnita9f.5ecju0eftkqw$.dlg@40tude.net> <87u4rkhddelw$.1uuoqhfyd2eay$.dlg@40tude.net> <6zobtdp3ckqx.plmvz5og15id.dlg@40tude.net> <2n0j0jfe6sex.2bcfi09ss44w$.dlg@40tude.net> NNTP-Posting-Host: pc100.krakow.cvx.ppp.tpnet.pl X-Trace: nemesis.news.tpi.pl 1096833913 7641 213.76.38.100 (3 Oct 2004 20:05:13 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 3 Oct 2004 20:05:13 +0000 (UTC) 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 Xref: g2news1.google.com comp.lang.ada:4625 Date: 2004-10-03T21:35:22+02:00 List-Id: Hi, > The problem is fundamental, if vector and vector as > types have nothing in common, then it is difficult to write a program > which can work with both. It is all about generic programming. But I'm still trying to figure out what problems does this entail (and why, in this respect, Ada arrays could be better than all array types in C++, which is what this discussion was about). My understanding is that vector and vector (or Ada arrays of elements of these types) *must* be different types because A and B are different types. Of course they've got some common properties and methods independent on the type of held elements like the number of elements, but I don't see any difficulties connected with this - all vector classes have the same interface, so it's easy to write a code that copes with vectors of elements of different types. Could you clarify this (or at least give some links concerning generic programming issues you are writing about)? Thanks. Best regards, Robert Kawulak