From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,248f80acc3d5ccb3 X-Google-Attributes: gid103376,public From: "Vladimir Olensky" Subject: Re: Objects properties - Ada design issues question Date: 2000/02/04 Message-ID: #1/1 X-Deja-AN: 581516547 References: Organization: Posted via Supernews, http://www.supernews.com X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.lang.ada X-Complaints-To: newsabuse@supernews.com Date: 2000-02-04T00:00:00+00:00 List-Id: 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