Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: using an Ad...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 9 Topic 5639 of 5830
Post > Topic >>

Re: using an Ada.Container as a private type

by Maciej Sobczak <see.my.homepage@[EMAIL PROTECTED] > Apr 3, 2008 at 01:41 PM

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
 




 9 Posts in Topic:
using an Ada.Container as a private type
Graham <graham.stark@[  2008-04-03 08:29:28 
Re: using an Ada.Container as a private type
Robert A Duff <bobduff  2008-04-03 12:00:24 
Re: using an Ada.Container as a private type
"Dmitry A. Kazakov&q  2008-04-03 18:02:48 
Re: using an Ada.Container as a private type
Graham <graham.stark@[  2008-04-03 09:20:40 
Re: using an Ada.Container as a private type
Maciej Sobczak <see.my  2008-04-03 13:41:10 
Re: using an Ada.Container as a private type
Graham <graham.stark@[  2008-04-04 01:02:30 
Re: using an Ada.Container as a private type
Robert A Duff <bobduff  2008-04-04 13:25:35 
Re: using an Ada.Container as a private type
Simon Wright <simon.j.  2008-04-04 20:37:38 
Re: using an Ada.Container as a private type
Adam Beneschan <adam@[  2008-04-04 08:57:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 14:44:32 CDT 2008.