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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: 'Protected' abstract subprograms Date: Tue, 14 Jan 2014 10:05:31 +0100 Organization: cbb software GmbH Message-ID: References: <839fee13-2743-49f6-a7f3-f95578386201@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: I5Na6+WsEzT8WoegI0VZTA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1903 Xref: number.nntp.dca.giganews.com comp.lang.ada:184414 Date: 2014-01-14T10:05:31+01:00 List-Id: On Mon, 13 Jan 2014 21:45:24 -0600, Randy Brukardt wrote: > Yes, but that would require some way of specifying that the private type > cannot be extended anywhere *other* than a child of the package containing > the private type. Doesn't type T is private; already do? It could be reused like type T is private [abstract] new ... with ...; BTW, there already exist cases when you effectively cannot extend a type publicly, because there would be no way to create an object of that type. > As I said last week, Ada takes privacy very seriously, Moderately serious I would say. In numerous cases privacy does not hold. Worse is that frequently privacy cannot be imposed or requires serious changes in the structure of types. Furthermore, there is no support for non-cooperative privacy (run-time enforced) whatsoever. IMO, privacy should be taken much more seriously than Ada does now. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de