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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8eff44ec1bcf8433 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-17 07:21:09 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!chcgil2-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: Wed, 17 Oct 2001 16:17:32 +0200 Organization: The Hebrew University of Jerusalem Message-ID: <9qk44b$utk$1@news.huji.ac.il> References: <9qctpn$lil$1@news.huji.ac.il> <3BCA86C7.BB252751@acm.org> <%jYy7.31350$ev2.37672@www.newsranger.com> <3BCD7C50.647ADBD0@brighton.ac.uk> NNTP-Posting-Host: di3-30.dialin.huji.ac.il X-Trace: news.huji.ac.il 1003328460 31668 132.64.13.30 (17 Oct 2001 14:21:00 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Wed, 17 Oct 2001 14:21:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.google.com comp.lang.ada:14805 Date: 2001-10-17T16:17:32+02:00 List-Id: John English wrote in message news:3BCD7C50.647ADBD0@brighton.ac.uk... > Hmm, the STL doesn't use inheritance, it's all done with templates. > Tagged types probably aren't needed at all (other than as derivations > of controlled). And you can use tricks to get around the library-level > problem, e.g. have a library-level parent package which defines a private > controlled type and generic children which make use of those controlled > objects as components in other composite types... > Don't you like using inheritance as for interface reuse? I like the ability to have all sequential structures support the same iteration mechanisms. I like the ability to write class-wide opertations ("Exists", "For_All", "Filter" etc.) Ehud