Re: [announcement] SYSAPI and SYSSVC for Windows
From: Georg Bauhaus (sb463ba_at_l1-hrz.uni-duisburg.de)
Date: 12/21/03
- Next message: Georg Bauhaus: "Re: How to test object hierarchy"
- Previous message: Georg Bauhaus: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- In reply to: Ekkehard Morgenstern: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Next in thread: Dmitry A. Kazakov: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 21 Dec 2003 04:24:49 +0000 (UTC)
Ekkehard Morgenstern <ekkehard.morgenstern@onlinehome.de> wrote:
:> 7. formal derived type parameter for generics;
:
: False. Of course you can use derived classes or other types in templates.
I think this is about "type requirements", not uses.
generic
type D is new T with private;
package P is
...
like
class P [D -> T] is ...
in Eiffel.
AFAIK, you cannot write
template<typename D> class P {
...
and nothing else and then expect items passed for D to be of
a conforming T type.
If I have understood some hints on Bjarne Stroustrup's web pages
this can be achieved in C++ as well, using suitable identifiers
and template computations.
- Next message: Georg Bauhaus: "Re: How to test object hierarchy"
- Previous message: Georg Bauhaus: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- In reply to: Ekkehard Morgenstern: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Next in thread: Dmitry A. Kazakov: "Re: [announcement] SYSAPI and SYSSVC for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|