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-23 13:09:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Container reqs Date: 23 Oct 2001 16:07:15 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <9qctpn$lil$1@news.huji.ac.il> <3BCA86C7.BB252751@acm.org> <%jYy7.31350$ev2.37672@www.newsranger.com> <3BCD7C50.647ADBD0@brighton.ac.uk> <9qk44b$utk$1@news.huji.ac.il> <3BD527A8.93C1F68B@brighton.ac.uk> <9r3umu$hvo$1@news.huji.ac.il> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1003867748 13975 128.183.220.71 (23 Oct 2001 20:09:08 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 23 Oct 2001 20:09:08 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:15099 Date: 2001-10-23T20:09:08+00:00 List-Id: "Ehud Lamm" writes: > wrote in message > news:3BD527A8.93C1F68B@brighton.ac.uk... > > Yes; but if you *want* to avoid inheritance, the STL is an existence > > proof for a possible solution... :-) > > > > OTOH, if you do want to use inheritance here, some trickery is probably > > needed to avoid the library-level problem (since you'll presumably want > > generic packages but don't want to force library-level instantiation). > > > > Life isn't simple, is it? > > I outlined a basic approach that works for me, a few days a go (the abstract > types package is parametreized by item. Inheritance, providing > implementation, is done in child units). > > Others presented their apporaches. > > Let me say a few words concerning my point of view, from a teaching > perspective. Since you teach too, I'd be happy to hear your views on these > issues. I think we can all agree that a library intended to be used as a teaching example might be simpler than a library intended to be used in general. -- -- Stephe