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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.190.66 with SMTP id o63mr6012856iof.65.1521471699645; Mon, 19 Mar 2018 08:01:39 -0700 (PDT) X-Received: by 2002:a9d:53ca:: with SMTP id i10-v6mr440467oth.1.1521471698151; Mon, 19 Mar 2018 08:01:38 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!199-v6no1105576itl.0!news-out.google.com!h73-v6ni5142itb.0!nntp.google.com!199-v6no1105574itl.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 19 Mar 2018 08:01:37 -0700 (PDT) In-Reply-To: <4598be4c-7a4b-4bdd-8fd3-99b943e77823@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83e8:db87:a4e8:ce22:1fc6:acb8; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83e8:db87:a4e8:ce22:1fc6:acb8 References: <4598be4c-7a4b-4bdd-8fd3-99b943e77823@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <33c426c4-c799-4ce1-b498-9c6c35fda207@googlegroups.com> Subject: Re: time of update of new values for out mode parameters From: AdaMagica Injection-Date: Mon, 19 Mar 2018 15:01:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 3952254037 X-Received-Bytes: 2268 Xref: reader02.eternal-september.org comp.lang.ada:51069 Date: 2018-03-19T08:01:37-07:00 List-Id: Am Montag, 19. M=C3=A4rz 2018 13:21:08 UTC+1 schrieb Mehdi Saada: > Hi. >=20 > When are new values of out or in out mode parameters written in the actua= l variable ? Is it instantaneous as I presume it is with access mode parame= ters, or is it done at the end of the function/procedure/accept statement ? >=20 > Mehdi I see that you post a lot of questions which are easily answered ba y look = in the RM. Please try to read it - you will get accustomed to its style. To this actual question: Ada doe not generally define how parameters are transferred. This is often = left to the compiler who will do the correct choice. Always transferred by copy (in, in out, out): scalar objects. Always transferred by reference: tagged types, limited types. Copy in: when the subprogram is called. Copy out: when the subprogram is left correctly (not when left via an excep= tion).