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-12-03 07:22:33 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <3C07DE0D.B5B1C77B@9online.fr> <3C0B7CF4.F4C8DECA@brighton.ac.uk> Subject: Re: Protected Object: little question Date: Mon, 3 Dec 2001 15:26:11 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: ed125012.sd.edinbr.gmav.gecm.com Message-ID: <3c0b95e7$1@pull.gecm.com> X-Trace: 3 Dec 2001 15:10:31 GMT, ed125012.sd.edinbr.gmav.gecm.com Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!ed125012.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:17344 Date: 2001-12-03T15:26:11+00:00 List-Id: "John English" wrote in message news:3C0B7CF4.F4C8DECA@brighton.ac.uk... > Bruno Hergott wrote: > > > > My question is: > > 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. > > I'd like to know how this can ever be necessary. The function can > only read the PO's private data, so if you aren't altering it and > you aren't interested in its value, what are you trying to do with > it? could he be passing the (current) contents of the PO on to the 'outside' world?..