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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d66743a9fdd96bd X-Google-Attributes: gid103376,public From: Andy Subject: Re: question about functions Date: 2000/01/22 Message-ID: <3889A56C.61C4@nospam.com.tj>#1/1 X-Deja-AN: 576097384 Cache-Post-Path: news.ozonline.com.au!unknown@melb-pool-116.ozonline.com.au Content-Transfer-Encoding: 7bit References: <867e3p$8ph$1@news.mgn.net> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@connect.com.au X-Trace: perki.connect.com.au 948541214 13983 203.4.248.42 (22 Jan 2000 11:40:14 GMT) Organization: Australia On Line Pty Ltd Mime-Version: 1.0 Reply-To: andy@nospam.com.tj NNTP-Posting-Date: 22 Jan 2000 11:40:14 GMT Newsgroups: comp.lang.ada Date: 2000-01-22T11:40:14+00:00 List-Id: Stephen Leake wrote: > > "Pascal LEJEUNE" writes: > [snipped] > One alternate approach that is possible in Ada is to pass the result > as an 'out' parameter : > > procedure f (A, B : in T; C : out T); > > now you can do C'Address. > But this would give the address of the formal parameter which may not be the address of the actual parameter. Unless T is a tagged type, isn't the compiler free pass parameters by reference or value? Andy