comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Protected Type compiler complaint
Date: Tue, 08 Jul 2014 09:11:14 +0200
Date: 2014-07-08T09:11:12+02:00	[thread overview]
Message-ID: <53bb9990$0$6605$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <Vsqdnahp47JQcifOnZ2dnUVZ_iydnZ2d@giganews.com>

On 07.07.14 21:06, framefritti wrote:
> 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).

By the nature of communication, a protected object used as a means
of communication just needs to be visible where needed. Its type
may be more global.
If tasks are started from within a subprogram doing auxiliary work
not useful anywhere else, chances are that their definition profits
from being local to the subprogram, possibly referring to local items.
Then there is no need that some PO exist outside the subprogram:

  reply	other threads:[~2014-07-08  7:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-07  7:15 Protected Type compiler complaint NiGHTS
2014-07-07  7:55 ` Simon Wright
2014-07-07 14:23   ` NiGHTS
2014-07-07 16:37     ` Adam Beneschan
2014-07-07 17:21     ` Simon Wright
2014-07-08 17:03     ` Shark8
2014-07-08 17:50       ` Anh Vo
2014-07-07 19:06 ` framefritti
2014-07-08  7:11   ` Georg Bauhaus [this message]
2014-07-08  7:53   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox