comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephe.Leake@nasa.gov>
To: "amado.alves" <amado.alves@netcabo.pt>
Cc: comp.lang.ada@ada-france.org
Subject: Re: Ada 200Y
Date: 19 Dec 2003 13:35:03 -0500
Date: 2003-12-19T13:35:03-05:00	[thread overview]
Message-ID: <mailman.142.1071858918.31149.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <468D78E4EE5C6A4093A4C00F29DF513D04B82B0E@VS2.hdi.tvcabo>

"amado.alves" <amado.alves@netcabo.pt> writes:

(please use a better quoting style, this was hard to sort out)

> stephen.leake@gsfc.nasa.gov writes:
> > "Picking the Java-style interfaces as a standard way to do one flavor
> > of MI is easy to agree on."

> Fake MI.

Hmm. No need to be nasty! I said "one flavor". I think we all agree
there are many ways to implement something that looks like multile
inheritance.

If you don't have a need for Java-style interfaces, fine; don't use
them! That doesn't mean the rest of us shouldn't get the chance to use
them.

> > > /* Tangent but doubly related issue: increasing the power of
> > > generics viz. towards generic parameters would be also a more
> > > interesting addition to me. I mean to be able to pass a generic unit
> > > to a (mandatorily generic) unit. I came across many situations where
> > > this would be useful. */
> > 
> > I don't follow. How is this different from formal packages?

> You can only pass instances as actuals for them. Instead I want to
> write for example 
> generic
>   generic package Generic_Formal; -- Ada 2015
> package P is
>   type T is ...;
> 
>   package Instance is new Generic_Formal (T);
> end;
> generic
>   ...
> package G is
>   ...
> end;
> package Instance_Of_P is new P (G);

Ah. I see. You can probably get a similar result for most cases now
with child generic packages; it would be interesting to see if that is
true in general.

-- 
-- Stephe




       reply	other threads:[~2003-12-19 18:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <468D78E4EE5C6A4093A4C00F29DF513D04B82B0E@VS2.hdi.tvcabo>
2003-12-19 18:35 ` Stephen Leake [this message]
2003-12-19 15:46 Ada 200Y amado.alves
     [not found] <468D78E4EE5C6A4093A4C00F29DF513D04B82B0B@VS2.hdi.tvcabo>
2003-12-18  1:16 ` Stephen Leake
replies disabled

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