comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: child class of limited_controlled not inheriting data
Date: Fri, 5 Aug 2016 21:42:00 +0200
Date: 2016-08-05T21:42:00+02:00	[thread overview]
Message-ID: <no2q69$hr9$1@dont-email.me> (raw)
In-Reply-To: <aa30d04a-42be-4b18-b1f5-785377315a15@googlegroups.com>

On 05.08.16 20:59, b.mcguinness747@gmail.com wrote:
> indicating that the child class is not inheriting the data from the parent class.

See Jeffrey Carter's response for the reason.
To make a type inherit the private data of a parent type,
a child package is one possibility, it establishes
visibility. Yours is a sibling package.

Minor nitpick: Ada has classes of types, and, in particular,
a T'Class type for naming class-wide O-O types, such as the
set of types all descending from T. So, "class" can be confusing
if talking about Ada types.

  parent reply	other threads:[~2016-08-05 19:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-05 18:59 child class of limited_controlled not inheriting data b.mcguinness747
2016-08-05 19:20 ` Jeffrey R. Carter
2016-08-05 19:36 ` Simon Wright
2016-08-05 19:37 ` Dmitry A. Kazakov
2016-08-05 19:42 ` G.B. [this message]
2016-08-05 20:26 ` b.mcguinness747
2016-08-05 20:47   ` Dmitry A. Kazakov
2016-08-06 19:00 ` rieachus
replies disabled

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