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,8029f6524ed823f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-04 09:31:13 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!nycmny1-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: Specialization of generics Date: Mon, 4 Jun 2001 19:16:42 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9fgcmj$9jb$1@news.huji.ac.il> References: <46ba9d66.0106031617.c802df3@posting.google.com> <9ffnvi$qtl$1@news.huji.ac.il> NNTP-Posting-Host: di2-63.dialin.huji.ac.il X-Trace: news.huji.ac.il 991671828 9835 132.64.12.63 (4 Jun 2001 16:23:48 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Mon, 4 Jun 2001 16:23:48 +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:8073 Date: 2001-06-04T19:16:42+03:00 List-Id: > Right. For me the easiest is to just have two generics (one for each > "specilization"). > --- > T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html Yap, that's what I'd do. What I really miss is being able to overload generic units. For example, imagine a package that can work on any non-limited type, but has a more efficient version ("specialization") is the type is ordered (i.e, has an "<" operator). The client code "simply" instantiates the unit, getting the appropriate version automagically. This is great when the internal structure of a library shouldn't really concern clients, and thus "we manage complexity." -- Ehud Lamm mslamm@mscc.huji.ac.il http://purl.oclc.org/NET/ehudlamm <== Me!