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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 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!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.112.MISMATCH!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx13.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:32.0) Gecko/20100101 Thunderbird/32.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What is the difference of "with null record" and "with private"? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sat, 24 May 2014 17:33:27 UTC Organization: TeraNews.com Date: Sat, 24 May 2014 11:33:24 -0600 X-Received-Bytes: 1611 X-Received-Body-CRC: 3715140161 Xref: news.eternal-september.org comp.lang.ada:20008 Date: 2014-05-24T11:33:24-06:00 List-Id: On 24-May-14 04:49, Victor Porton wrote: > Shark8 wrote: > >> On 23-May-14 12:19, Victor Porton wrote: >>> What is the difference of "with null record" and "with private"? >>> >>> Both denote a descendant of a type with no new additional public fields. >> >> Incorrect. >> Null record does what you indicate, with private means that any fields >> aren't visible/public. Example: > > I've said "no new additional PUBLIC fields" not just "no new additional > fields"! So? The point stands the method given does something quite different -- this means that you can alter behavior w/o changing the underlying structure -- say renaming 'append' and 'prepend' inversely on a vector so that your operations work from the other end w/o any modification to the client code.