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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dcda92e2d95aeec X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-30 14:54:08 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: Protected Object: little question X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3C080A1C.F597D2D4@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <3C07DE0D.B5B1C77B@9online.fr> Mime-Version: 1.0 Date: Fri, 30 Nov 2001 22:37:16 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:17254 Date: 2001-11-30T22:37:16+00:00 List-Id: Bruno Hergott wrote: > > If i want to implement an action wich does only read access to the protected data and wich > can > be called by 2 tasks at the same time, i must write a function. > But i may not need the return value of this function. Because what i want is not really a > function. > What i want is "the thing in a protected object to do only read access to the protected > data > and wich can be called by 2 tasks at the same time". > And so i must for example call this action like this: > My_Boolean_Return_Value_I_Dont_Want := My_Protected_Object.MyProtectedFunction(..); > It seems to strange to be true... > > Or is there something i haven't understand ? Since the function can't change the protected object, and you ignore the return value, what's the point of calling the function? -- Jeffrey Carter