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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9081ae7069434ca5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.241.37 with SMTP id wf5mr1452801pbc.4.1328796008048; Thu, 09 Feb 2012 06:00:08 -0800 (PST) Path: wr5ni5081pbc.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 09 Feb 2012 14:59:51 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Publishing selected entries in a protected object? References: <87wr7wkyp5.fsf@adaheads.sparre-andersen.dk> In-Reply-To: <87wr7wkyp5.fsf@adaheads.sparre-andersen.dk> Message-ID: <4f33d158$0$7625$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 09 Feb 2012 14:59:52 CET NNTP-Posting-Host: 1af797c7.newsspool1.arcor-online.net X-Trace: DXC=aSTC;agaRn=kUFX=Y?aLP;ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2@:>SDEfdW76nc\616M64>:Lh>_cHTX3j=km\6oZEOA@9 X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-02-09T14:59:52+01:00 List-Id: On 09.02.12 12:56, Jacob Sparre Andersen wrote: > I have a package containing a protected object, and I would like to > publish _one_ of this object's entries in the specification of the > package. Using synchronized interfaces should work? package Semi is type Half is synchronized interface; procedure Grab (PO : in out Half) is abstract; function MakePO return Half'Class; private protected type Full is new Half with overriding entry Grab; entry Foo; end Full; end Semi; ... function MakePO return Half'Class is begin return Result : Full; end MakePO;