comp.lang.ada
 help / color / mirror / Atom feed
* prohibit certain generic instantiations in Ada 2005
@ 2006-02-09 18:01 matteo.bordin
  2006-02-09 20:02 ` Matthew Heaney
  0 siblings, 1 reply; 17+ messages in thread
From: matteo.bordin @ 2006-02-09 18:01 UTC (permalink / raw)


There's a way to prohibit certain generic instantiations (I'm using Ada
2005)?
For  example:

generic
     Type B is new A with private;
...

Should be instantiated only with a certain subtype(s) of A.
I know a way to do that in C++ (with templates) but it doesn't seem to
work in Ada.




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-02-13 19:14 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 18:01 prohibit certain generic instantiations in Ada 2005 matteo.bordin
2006-02-09 20:02 ` Matthew Heaney
2006-02-10 14:18   ` matteo.bordin
2006-02-10 18:25     ` Dmitry A. Kazakov
2006-02-10 19:03       ` Georg Bauhaus
2006-02-11 10:45         ` Dmitry A. Kazakov
2006-02-11  8:04       ` matteo.bordin
2006-02-11  9:54         ` Martin Krischik
2006-02-11 10:20           ` matteo.bordin
2006-02-11 12:46             ` Martin Krischik
2006-02-11 10:45         ` Dmitry A. Kazakov
2006-02-11 22:20           ` Jeffrey R. Carter
2006-02-11 15:36         ` Stephen Leake
2006-02-12  8:55           ` matteo.bordin
2006-02-12  9:49             ` Dmitry A. Kazakov
2006-02-12 12:41               ` matteo.bordin
2006-02-13 19:14             ` Matthew Heaney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox