comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: What is the difference of "with null record" and "with private"?
Date: Sat, 24 May 2014 11:33:24 -0600
Date: 2014-05-24T11:33:24-06:00	[thread overview]
Message-ID: <HJ4gv.1059106$y81.706413@fx13.iad> (raw)
In-Reply-To: <llptg7$k5m$1@speranza.aioe.org>

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.

  reply	other threads:[~2014-05-24 17:33 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 [this message]
2014-05-23 21:55 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox