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 13:15:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feeder.kornet.net!nntp.kreonet.re.kr!newsfeed.dacom.co.kr!intgwlon.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Protected Object: little question Organization: RMIT References: <3C07DE0D.B5B1C77B@9online.fr> User-Agent: MT-NewsWatcher/3.1 (PPC) Message-ID: Date: Fri, 30 Nov 2001 21:15:49 GMT NNTP-Posting-Host: 144.132.91.79 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1007154949 144.132.91.79 (Sat, 01 Dec 2001 08:15:49 EST) NNTP-Posting-Date: Sat, 01 Dec 2001 08:15:49 EST Xref: archiver1.google.com comp.lang.ada:17243 Date: 2001-11-30T21:15:49+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... What do you want it to do with the value you have read? I'm not sure why you want to "read" a value, but not do anything with the value you have read. Your choices are... access parameters to the function a procedure. Dale