From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Why can't Ada use dot notation on private types?
Date: Mon, 6 Feb 2017 13:40:26 -0600
Date: 2017-02-06T13:40:26-06:00 [thread overview]
Message-ID: <o7ajfb$isg$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: d1956163-4a96-4e39-97d5-0a516e9a954c@googlegroups.com
"Lucretia" <laguest9000@googlemail.com> wrote in message
news:d1956163-4a96-4e39-97d5-0a516e9a954c@googlegroups.com...
> Hi,
>
> A lot of people dislike the fact that you cannot use dot notation on a
> tagged type if it's private.
> Is there a reason for this? Surely the compiler knows it's tagged when it
> looks it up?
That would be privacy breaking, of course: the legality of the source would
depend upon the private details.
But of course it is legal if you have a tagged private type. (Once done, of
course, the fact that the type is tagged is visible.) Completing an untagged
private type with a tagged type causes various semantic issues, so I'd
recommend against that anyway.
Randy.
prev parent reply other threads:[~2017-02-06 19:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-05 14:17 Why can't Ada use dot notation on private types? Lucretia
2017-02-05 15:31 ` Dmitry A. Kazakov
2017-02-06 19:44 ` Randy Brukardt
2017-02-06 20:27 ` Dmitry A. Kazakov
2017-02-08 23:26 ` Randy Brukardt
2017-02-09 8:47 ` Dmitry A. Kazakov
2017-02-06 19:40 ` 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