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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 07 Jul 2014 14:06:53 -0500 From: framefritti Subject: Re: Protected Type compiler complaint Newsgroups: comp.lang.ada X-UserIpAddress: 93.37.85.17 X-InternalId: 05318cc6-3a27-4294-9364-9b8a86ff396c References: Message-ID: Date: Mon, 07 Jul 2014 14:06:53 -0500 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-YA1JRGvoWHebnKAStD1t8LqBdsj50eqiMMghdS5imSY3KLOm7lGkYIC75NQcSsgJpvYSmOQXBxqAlyr!sTRP+6WYJWkZg4JRHBI6qWeUCsCvAKxiapifN/JSKLfaATJ7cWr1X9YKaD1P5PQWd0GKflaxy449!4A== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1510 Xref: number.nntp.dca.giganews.com comp.lang.ada:187434 Date: 2014-07-07T14:06:53-05:00 List-Id: In my humble and "gut" opinion, maybe in this case the use of a global object is not as bad as in other cases since by its own nature a protected object acts as a communication mean between different tasks, so it is "natural" that it must be visible to "everyone" (although you could partially restrict its visibility by placing it inside a suitable child package). Moreover, protected object have implicitly some kind of "high level" interface, so that its access is somehow controlled. Riccardo