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,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fa2cc518ef3b992c X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: tagged types extensions - language design question Date: 2000/02/01 Message-ID: #1/1 X-Deja-AN: 580411134 Content-transfer-encoding: 7bit References: <3891B5B3.7430F96B@earthlink.net> <38970C27.5362779A@earthlink.net> Content-Type: text/plain; charset="US-ASCII" X-ELN-Date: Tue Feb 1 09:16:58 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 949425418 38.26.88.144 (Tue, 01 Feb 2000 09:16:58 PST) Organization: EarthLink Network, Inc. Mime-version: 1.0 NNTP-Posting-Date: Tue, 01 Feb 2000 09:16:58 PST Newsgroups: comp.lang.ada Date: 2000-02-01T00:00:00+00:00 List-Id: In article <38970C27.5362779A@earthlink.net> , Charles Hixson wrote: > I can't speak for him (Vladimir Olensky) but my reason is so that I need to > keep track of fewer names. I frequently pick up projects for short periods of > time, and then put them down for several months before the next time that I > pick them up. If I have to keep track of fewer names then I find it easier to > reposition myself in the project. Of course, if anything was ever really > completed, then the private sections would never need to be thought about > again. This, however, doesn't seem to map well into my perceived reality. There are no names that you need to remember. Suppose I declare an abstraction comprising some public and some private attributes, like this: package P is type T_Public is abstract tagged record Public_Attribute : Public_Attribute_Type; end record; type T is new T_Public with private; ... end P; That type T_Public is part of the hierarchy is irrelevant. This just happens to be the syntax for declaring public attributes in type T, which is the only type you care about.