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,T_FILL_THIS_FORM_SHORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,cb04cee6116c8ced X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Package's private parts and protected types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <7ff3810f-3ee3-4f39-a54c-933ad7d0655c@36g2000yqu.googlegroups.com> Date: Mon, 8 Feb 2010 11:20:52 +0100 Message-ID: <1v2la97s2yyvd.1rcy0ana8mver.dlg@40tude.net> NNTP-Posting-Date: 08 Feb 2010 11:20:53 CET NNTP-Posting-Host: 726ee1ef.newsspool4.arcor-online.net X-Trace: DXC=IZdHVRNT1lNWDmlTRbh@=I4IUKO`alMOOe@H^L X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:8969 Date: 2010-02-08T11:20:53+01:00 List-Id: On Mon, 8 Feb 2010 00:30:12 -0800 (PST), Martin wrote: > This is true of task types too. I don't think so. The task specification does not expose barriers and local variables of its body. But the protected type specification does its private operations and components: package P is protected type T is ... private ... -- Why is it here? Is it C++ or Ada? end T; private ... -- It belongs here! Or better to the package body end P; Obviously to me, the syntax should have been like: type T is protected private; -- or "protected with private" entry Foo (X : in out T); function Bar (X : T) return Boolean; private type T is protected record ... end T; -- I don't like "end record" either. If you write "limited" instead of "protected", you cannot publicly declare entries. (And same for the task types) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de