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 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!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: What is the difference of "with null record" and "with private"? Date: Fri, 23 May 2014 16:55:53 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1401134685 11432 69.95.181.76 (26 May 2014 20:04:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Mon, 26 May 2014 20:04:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:20038 Date: 2014-05-23T16:55:53-05:00 List-Id: "Victor Porton" wrote in message news:llo3f0$mqp$1@speranza.aioe.org... > What is the difference of "with null record" and "with private"? > > Both denote a descendant of a type with no new additional public fields. > > I see no difference. What is the difference and when one or another should > be used? There's at least one difference: "null record" automatically creates inherited functions returning the type for you, while "private" (and any components) means you have to do this manually. I personally consider this a mis-feature of Ada and would hope no one depends too much on it (it should be available for all types or none, IMHO). But it can make for some maintenance headaches down the road for "null record". Randy.