Selon Peter Ashenden <peter@ashenden.com.au>:
[...]
> > > Ada-95 introduced object orientation through extensions to packages
> > > and to types and operations defined in packages.
> > I don't agree on the last point: extensions to packages (aka
> > child packages) is not object orientation.
>
> I was not referring to child packages. (I apologize if I've abused
> terminology.) Rather, in Ada-95, the extensions are by declaring a package
> that derives a new type from a parent type in another package. The deriving
> package can add further primitive operations to those defined in the
> original package. In this sense, the type and operations in the second
> package extend those of the first package.
Ok, I have misunderstood what you said.
Please note in Ada95 you don't need a new package to derive a new type. You
can derive in the same package.
Tristan.
Received on Thu Jan 20 04:56:08 2005
This archive was generated by hypermail 2.1.8 : Thu Jan 20 2005 - 04:56:40 PST