Re: GNAT GPL Edition - on the plus side
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: 15 Oct 2005 20:48:29 -0400
"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> writes:
> I am not sure I have understood what you meant,...
>From your response, I think you understand exactly what I meant. You
propose passing type parameters to (generic) types as opposed to passing
type parameters to (generic) packages. Yes, that's a lot like
discriminants, and I've thought of the same thing myself.
But it's still a lot like generics -- instead of generic packages, we
have generic types. (In fact, in Eiffel, you have generic classes.)
I don't much like the macro-expansion-like semantics of Ada generics
(though it's better in some ways than C++ templates). The need is for
"types parameterized by types". Ada generics do that, and perhaps some
magical discriminants could, too, and perhaps that would be more
convenient.
Are we agreeing or disagreeing, here?
- Bob
.
- Follow-Ups:
- Re: GNAT GPL Edition - on the plus side
- From: Dmitry A. Kazakov
- Re: GNAT GPL Edition - on the plus side
- References:
- GNAT GPL Edition - on the plus side
- From: Steve
- Re: GNAT GPL Edition - on the plus side
- From: Dmitry A. Kazakov
- Re: GNAT GPL Edition - on the plus side
- From: Marc A. Criley
- Re: GNAT GPL Edition - on the plus side
- From: Dmitry A. Kazakov
- Re: GNAT GPL Edition - on the plus side
- From: Randy Brukardt
- Re: GNAT GPL Edition - on the plus side
- From: Robert A Duff
- Re: GNAT GPL Edition - on the plus side
- From: Dmitry A. Kazakov
- GNAT GPL Edition - on the plus side
- Prev by Date: Re: Ada memory management seems slow
- Next by Date: Re: Need a Wild Library Unit Elaboration Example
- Previous by thread: Re: GNAT GPL Edition - on the plus side
- Next by thread: Re: GNAT GPL Edition - on the plus side
- Index(es):
Relevant Pages
|