From: Bill Findlay <news@findlayw.plus.com>
Subject: Re: Ada 2005 OOP : newbie questions
Date: Thu, 27 Jan 2011 15:50:31 +0000
Date: 2011-01-27T15:50:31+00:00 [thread overview]
Message-ID: <C96744C7.51FE%news@findlayw.plus.com> (raw)
In-Reply-To: rahmct77kd97$.1st3durl551z$.dlg@40tude.net
On 27/01/2011 15:15, in article rahmct77kd97$.1st3durl551z$.dlg@40tude.net,
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote:
> On Thu, 27 Jan 2011 14:54:01 +0000, Bill Findlay wrote:
>
>> I have a package P that declares
>>
>> type R is new Limited_Controlled with private;
>>
>> The private extension of R contains a number of fields that I want to be
>> common to future derived types S, T, etc; P declares a number of primitive
>> operation signatures of R that I want S, T, etc, to override; and there are
>> some operations on R'Class in P as well.
>>
>> 1. Can I prevent objects of type P.R from being declared,
>> while allowing objects of types S, T, etc?
>
> A type with no instances is abstract:
>
> type R is abstract new Limited_Controlled with private;
D'oh! I KNEW that (once)! Thanks for the reminder, Dmitry!
--
Bill Findlay
with blueyonder.co.uk;
use surname & forename;
prev parent reply other threads:[~2011-01-27 15:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 14:54 Ada 2005 OOP : newbie questions Bill Findlay
2011-01-27 15:15 ` Dmitry A. Kazakov
2011-01-27 15:50 ` Bill Findlay [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