From: Yves Bailly <kafka.fr@laposte.net>
Subject: Partial generic instanciation
Date: Sat, 28 Oct 2006 12:41:30 +0200
Date: 2006-10-28T12:42:35+02:00 [thread overview]
Message-ID: <4543341b$0$7220$426a74cc@news.free.fr> (raw)
Hello all,
I didn't find anywhere any reference to this, but I'm wondering
anyway : is it possible to do partial generic instanciation,
something like partial template instanciation in C++ ?
Say for example you have a package like this :
generic
type T_1 is private;
type T_2 is private;
package Pkg is
-- ....
end Pkg;
Is it possible to declare a new package with something like :
with Pkg;
generic
type TT is private;
package Pkg_Int is new Pkg(T_1 => Integer, T_2 => TT);
I *know* this actually doesn't compile, but is there some syntax I'm
not aware of to achieve this ?
Best regards,
--
(o< | Yves Bailly : http://kafka-fr.net | -o)
//\ | Linux Dijon : http://www.coagul.org | //\
\_/ | | \_/`
next reply other threads:[~2006-10-28 10:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-28 10:41 Yves Bailly [this message]
2006-10-28 13:03 ` Partial generic instanciation Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox