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 06:11:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!tank.news.pipex.net!pipex!newspeer.clara.net!news.clara.net!server3.netnews.ja.net!newshost.central.susx.ac.uk!news.bton.ac.uk!not-for-mail From: John English Newsgroups: comp.lang.ada Subject: Re: Protected Object: little question Date: Mon, 03 Dec 2001 13:24:04 +0000 Organization: University of Brighton Message-ID: <3C0B7CF4.F4C8DECA@brighton.ac.uk> References: <3C07DE0D.B5B1C77B@9online.fr> NNTP-Posting-Host: dialin-b4.bton.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: saturn.bton.ac.uk 1007385797 1992 194.81.199.184 (3 Dec 2001 13:23:17 GMT) X-Complaints-To: news@bton.ac.uk NNTP-Posting-Date: 3 Dec 2001 13:23:17 GMT X-Mailer: Mozilla 4.7 [en-gb] (WinNT; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:17332 Date: 2001-12-03T13:23:17+00:00 List-Id: 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? ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.comp.it.bton.ac.uk/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------