From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b330d3baa1c7a1b5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Bill Findlay Newsgroups: comp.lang.ada Subject: Re: Ada 2005 OOP : newbie questions Date: Thu, 27 Jan 2011 15:50:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net 3Ac8N/exBohixCBAZ0lUNgwT3qO2Bu+FcHVklCBFgirfK/TcSA Cancel-Lock: sha1:DHNnEcge5YisU6ffW8BbJKnZpTQ= User-Agent: Microsoft-Entourage/12.28.0.101117 Thread-Topic: Ada 2005 OOP : newbie questions Thread-Index: Acu+Oe0SUSYMLLGCX0GaYLWkolxxog== Xref: g2news2.google.com comp.lang.ada:17710 Date: 2011-01-27T15:50:31+00:00 List-Id: On 27/01/2011 15:15, in article rahmct77kd97$.1st3durl551z$.dlg@40tude.net, "Dmitry A. Kazakov" 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;