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,54e6f3bfd18d2769 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: Pointer function parameter Date: 2000/10/17 Message-ID: <39EC12B6.A9285EFD@maths.unine.ch>#1/1 X-Deja-AN: 682390892 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 17 Oct 2000 10:49:57 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-17T00:00:00+00:00 List-Id: Mary: > How can you handle address-of-operator (&) in Ada. > > ie. > > float calculation(float &num2, float num1) Good news: you can do everything with in/in out/out parameters, almost no need of 'address or 'access. "Bad" news: if you are trying to affect num2 (are you ?), you can't do it in a function: a bug-prone side-effect. Do it as: procedure calculation( num1: float; num2: in out float; result: out float ) is... HTH ______________________________________________________ Gautier -- http://members.nbci.com/gdemont/gsoft.htm