From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Instantiating package problems
Date: Sun, 10 Jan 2016 14:38:20 -0700
Date: 2016-01-10T14:38:20-07:00 [thread overview]
Message-ID: <n6uirb$lqq$1@dont-email.me> (raw)
In-Reply-To: <6583d5e1-2d8b-4c90-bb9d-9673061e76c7@googlegroups.com>
On 01/10/2016 12:43 PM, Andrew Shvets wrote:
> Potentially stupid question. When you instantiate a record (which is
> described in the private portion of a package), does that mean that the
> insides (the different types, lists, arrays, etc.) that compose it are not
> visible to others except through setter and getter methods?
Is there some reason you have to quote the entirety of 9 msgs to ask this question?
The client of a pkg with a private type does not have visibility of the full
type declaration in the private part. The only things a client can do with a
private type is declare objects of the type and call subprograms operating on
the type. (If the type is not declared limited, the client can also assign
values and call "=" and "/=".)
"Instantiate" is an Ada technical term with a specific meaning relating to
generics. It is meaningless applied to a record type. The Ada technical term is
"declare an object of a record type", often shortened to "declare a record".
--
Jeff Carter
"Death awaits you all, with nasty, big, pointy teeth!"
Monty Python & the Holy Grail
20
next prev parent reply other threads:[~2016-01-10 21:38 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-03 18:40 Instantiating package problems Andrew Shvets
2016-01-03 20:27 ` Georg Bauhaus
2016-01-03 21:21 ` Andrew Shvets
2016-01-03 21:04 ` Jeffrey R. Carter
2016-01-03 21:27 ` Andrew Shvets
2016-01-03 22:39 ` Jeffrey R. Carter
2016-01-03 22:08 ` Bob Duff
2016-01-04 0:07 ` Andrew Shvets
2016-01-04 0:30 ` Andrew Shvets
2016-01-04 13:43 ` G.B.
2016-01-04 14:23 ` Brian Drummond
2016-01-04 20:49 ` Anh Vo
2016-01-04 21:10 ` Dmitry A. Kazakov
2016-01-04 22:39 ` Anh Vo
2016-01-05 1:42 ` Anh Vo
2016-01-05 7:35 ` Dmitry A. Kazakov
2016-01-06 2:46 ` Andrew Shvets
2016-01-06 8:53 ` Dmitry A. Kazakov
2016-01-06 3:30 ` Andrew Shvets
2016-01-06 4:51 ` Anh Vo
2016-01-06 4:54 ` Anh Vo
2016-01-06 5:00 ` Andrew Shvets
2016-01-06 5:07 ` Anh Vo
2016-01-07 4:41 ` Andrew Shvets
2016-01-07 5:41 ` Anh Vo
2016-01-09 20:14 ` Andrew Shvets
2016-01-10 19:43 ` Andrew Shvets
2016-01-10 21:38 ` Jeffrey R. Carter [this message]
2016-01-10 21:50 ` Georg Bauhaus
2016-01-10 21:58 ` Andrew Shvets
2016-01-06 13:07 ` G.B.
2016-01-07 4:42 ` Andrew Shvets
2016-01-06 14:25 ` Bob Duff
2016-01-06 23:48 ` Anh Vo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox