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.8 required=5.0 tests=BAYES_00,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: GNAT CE 2020 : error when using anon access to subprogram inside protected !? Date: Wed, 3 Jun 2020 11:54:27 +0200 Organization: Adalog Message-ID: References: <73389630-ef9f-4a9a-918e-0ffc89f62e6c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 3 Jun 2020 09:54:28 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="17c8ac9e0f5f5df0f523341b8fed6373"; logging-data="27767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182jduA+Z85b1Qfgq2Upzhi" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:tzN+yvjC8D7R2fvdHBtnabKAhHc= In-Reply-To: Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58947 Date: 2020-06-03T11:54:27+02:00 List-Id: Le 03/06/2020 à 08:36, Simon Wright a écrit : > 9.4(8) allows this. It's always been a gripe of mine that you can't > declare objects (let alone types!) inside a PO's body. Dispite a PO looking like a task or package, it is fundamentally a data structure, with operations attached. Our beloved separation of specification and body means that as soon as you have seen a PO's specification, you must be able to allocate its space => you cannot have data in the body. QED. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr