From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: What is the difference of "with null record" and "with private"?
Date: Fri, 23 May 2014 16:55:53 -0500
Date: 2014-05-23T16:55:53-05:00 [thread overview]
Message-ID: <lm06ot$b58$5@loke.gir.dk> (raw)
In-Reply-To: llo3f0$mqp$1@speranza.aioe.org
"Victor Porton" <porton@narod.ru> 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.
prev parent reply other threads:[~2014-05-23 21:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 18:19 What is the difference of "with null record" and "with private"? Victor Porton
2014-05-23 18:21 ` Victor Porton
2014-05-23 18:55 ` mockturtle
2014-05-23 19:42 ` Adam Beneschan
2014-05-23 22:05 ` Adam Beneschan
2014-05-24 8:19 ` mockturtle
2014-05-23 20:45 ` Georg Bauhaus
2014-05-23 18:59 ` Dan'l Miller
2014-05-23 21:45 ` Shark8
2014-05-24 10:49 ` Victor Porton
2014-05-24 17:33 ` Shark8
2014-05-23 21:55 ` Randy Brukardt [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox