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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd40601768eaf8fd X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: Proposed Ada features (was Re: Array of Variant Records Question...) Date: 1999/09/10 Message-ID: #1/1 X-Deja-AN: 523578986 References: <37d9658c@news1.prserv.net> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 937004829 206.170.2.119 (Fri, 10 Sep 1999 16:07:09 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Fri, 10 Sep 1999 16:07:09 PDT Newsgroups: comp.lang.ada Date: 1999-09-10T00:00:00+00:00 List-Id: > function Get_Top (Stack : Stack_Type) return Item_Type is > Control : Semaphore_Control (Stack.Semaphore'Access); But the problem here is that the function Get_Top is in fact going to modify its parameter - Stack will become unavailable to others, at least for a while - and you want to modify the parameter to a function. This may be a good example of why functions should allow "in out" parameters, but it's not a good example of why "access constant" is desirable.