comp.lang.ada
 help / color / mirror / Atom feed
From: "Vladimir Olensky" <vladimir_olensky@yahoo.com>
Subject: Re: Objects properties -  Ada design issues question
Date: 2000/02/04
Date: 2000-02-04T00:00:00+00:00	[thread overview]
Message-ID: <s9lm5375dh166@corp.supernews.com> (raw)
In-Reply-To: s9ljhv6jdh127@corp.supernews.com


Vladimir Olensky wrote in message ...
>Objects properties -  Ada design issues question:


Noticed that my example was a little bit incorrect so
below is  a small correcton:

It was:
>
>package P is
>
>  type T is tagged private;
>
>   type T1 is  new T with record
>        --  public properties A and B;
>        --  they are public views of some internal  states
>        --  which in turn could be fields of some complex
>        --  "Black Box" internal  structures;
>        A : [property]  constant Integer;
>        B : [property]  Integer;
>   end record;
> private
<   ...>
> end P;


Should be:

package P is
   type T is abstract tagged record
        --  public properties A and B;
        --  they are public views of some internal  states
        --  which in turn could be fields of some complex
        --  "Black Box" internal  structures;
        A : [property]  constant Integer;
        B : [property]  Integer;
   end record;

  type T1 is new T with   private;

 private
    <   ...>
    for  T1.A'Get ...
    for  T1.B'Get ..
    for  T1.B'Set ..

 end P;

Sorry for not having checked it prior to sending.

Regards,
Vladimie Olensly






      parent reply	other threads:[~2000-02-04  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-04  0:00 Objects properties - Ada design issues question Vladimir Olensky
2000-02-04  0:00 ` Matthew Heaney
2000-02-04  0:00 ` Florian Weimer
2000-02-04  0:00   ` Vladimir Olensky
2000-02-04  0:00   ` Vladimir Olensky
2000-02-06  0:00     ` Andy
2000-02-07  0:00       ` Vladimir Olensky
2000-02-10  0:00         ` Andy
2000-02-08  0:00     ` Florian Weimer
2000-02-04  0:00   ` Samuel T. Harris
2000-02-04  0:00 ` Vladimir Olensky [this message]
replies disabled

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