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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.58.152.37 with SMTP id uv5mr2989168veb.0.1400871563085; Fri, 23 May 2014 11:59:23 -0700 (PDT) X-Received: by 10.182.109.164 with SMTP id ht4mr17123obb.34.1400871562906; Fri, 23 May 2014 11:59:22 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!c1no15348154igq.0!news-out.google.com!qf4ni12380igc.0!nntp.google.com!c1no15348149igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 May 2014 11:59:22 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.252.147.203; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 71.252.147.203 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <244b1c7d-78c7-4015-9a72-4c325a50fdd8@googlegroups.com> Subject: Re: What is the difference of "with null record" and "with private"? From: "Dan'l Miller" Injection-Date: Fri, 23 May 2014 18:59:22 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:19990 Date: 2014-05-23T11:59:22-07:00 List-Id: On Friday, May 23, 2014 1:19:16 PM UTC-5, Victor Porton wrote: > What is the difference of "with null record" and "with private"? >=20 >=20 >=20 > Both denote a descendant of a type with no new additional public fields. You will see the answer when you focus on why you yourself wrote the word "= public" there. I suspect that even you would suspect the falsehood of: Bo= th denote a descendant of a type with no additional fields. > What is the difference and when one or another should be used? When the public view of a record is declared 'with null record', then tha= t record has no additional fields--neither public nor private/encapsulated.= When the public view of the record is declared "with private" the record = may optionally have additional private/encapsulated fields that are maintai= ned safely by subprograms in that package. > I see no difference. That is because you are wearing the blinders of "public". Look from the bi= gger picture of the 'private' vantage point to see what more can go on behi= nd the curtain.