comp.lang.ada
 help / color / mirror / Atom feed
From: "Ehud Lamm" <mslamm@mscc.huji.ac.il>
Subject: Re: Specialization of generics
Date: Mon, 4 Jun 2001 13:23:03 +0300
Date: 2001-06-04T13:23:03+03:00	[thread overview]
Message-ID: <9ffnvi$qtl$1@news.huji.ac.il> (raw)
In-Reply-To: 46ba9d66.0106031617.c802df3@posting.google.com

> Now the question: Is it possible to define a generic package taking
> one or more types as generic formal parameters, and then define that
> the generic is instantiated in a different way if the generic formal
> parameters match some condition?  One application I could think of
> would be for an image package to handle 1-bit images in a compact way.
>

Short answer is that generic specialization as such doesn't exist in Ada.
I am sure others will give plenty of useful suggestions how to overcome this
problem.


--
Ehud Lamm   mslamm@mscc.huji.ac.il
http://purl.oclc.org/NET/ehudlamm <==  Me!








  parent reply	other threads:[~2001-06-04 10:23 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 [this message]
2001-06-04 14:51   ` Ted Dennison
2001-06-04 16:16     ` Ehud Lamm
2001-06-04 17:28       ` Brian Rogoff
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