On Apr 3, 9:41 pm, Maciej Sobczak <see.my.homep...@[EMAIL PROTECTED]
> wrote:
> On 3 Kwi, 17:29, Graham <graham.st...@[EMAIL PROTECTED]
> wrote:
>
> > package Payment_Stream_Package is new Ada.Containers.Ordered_Maps(
> > Element_Type => Money,
> > Key_Type => Positive );
>
> > type Payment_Stream is new Payment_Stream_Package.Map;
>
> Instead of a solution, I have a question:
>
> Why do you derive from Map? Which operations of Map do you plan to
> override?
>
> Do you ever plan to pass Payment_Stream where
> Payment_Stream_Package.Map'Class is expected? What effect would you
> like to achieved this way?
>
> Why derivation and not composition?
>
> --
> Maciej Sobczak *www.msobczak.com*www.inspirel.com
Good question. The intention was not to derive from Map at all: I
simply wanted to keep the fact that it was implemented as a Map
private. Is there a better way of doing that, or is keeping it private
overdesign?
Graham


|