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,9593355bec84b137 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Ada 83 - Rep clause inside private area question Date: 1997/04/20 Message-ID: #1/1 X-Deja-AN: 236200318 References: <33575FD0.41C67EA6@hercii.mar.lmco.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-04-20T00:00:00+00:00 List-Id: matthew Heaney said <> This is quite wrong. There are many reasons for using rep clauses (I assume that Matthew means rep clauses wwhen he says rep specs -- this is a very common bit of incorrect terminology). Examples are a small clause, which has an important effect on the semantics and surely should be in the visible part. Pack used to save space, this generally need NOT be in the public part since it typically is not part of the logical interface. A storage pool rep clause for an access type is certainly another example of something that has nothing to do with I/O .. Another example is for Reliable_Boolean use (2#01010101#, 2#10101010#) to get a Boolean type whose representation is not single bit sensitive. There are MANY other examples of the use of rep clauses which have nothing to do with IO or interfacing, Matthews characterization is FAR too narrow. He also said <> But this too may be affected by his far too narrow view of rep clauses. Generally the issue of whether rep clauses go in the private part or not is one of whether the rep clause is or is not part of the legitimate interface which you want clients to be able to depend on. Sometimes the answer is yes, sometimes the answer is no. Matthew said that his answer is always yes, but an answer of yes is clearly inappropriate in some of the above examples, and in many other examples.