From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: Specialization of generics
Date: Mon, 04 Jun 2001 17:28:39 GMT
Date: 2001-06-04T17:28:39+00:00 [thread overview]
Message-ID: <Pine.BSF.4.21.0106041018420.26148-100000@shell5.ba.best.com> (raw)
In-Reply-To: <9fgcmj$9jb$1@news.huji.ac.il>
On Mon, 4 Jun 2001, Ehud Lamm wrote:
> > 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.
OK, I tried to sit on my hands, but I can't resist. Along these lines, you
can look at
http://www.acm.org/pubs/citations/proceedings/ada/126551/p338-shen/#indterms
which is not exactly what you're talking about but would provide some
similar capabilities. I'd have really liked something like this in Ada.
Who knows, maybe SPARK will evolve into a new language with parametric
polymorphism.
-- Brian
next prev parent reply other threads:[~2001-06-04 17:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-04 0:17 Specialization of generics John Pitney
2001-06-04 1:04 ` tmoran
2001-06-04 10:23 ` Ehud Lamm
2001-06-04 14:51 ` Ted Dennison
2001-06-04 16:16 ` Ehud Lamm
2001-06-04 17:28 ` Brian Rogoff [this message]
2001-06-04 19:21 ` Ehud Lamm
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox