From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: time of update of new values for out mode parameters
Date: Mon, 19 Mar 2018 08:01:37 -0700 (PDT)
Date: 2018-03-19T08:01:37-07:00 [thread overview]
Message-ID: <33c426c4-c799-4ce1-b498-9c6c35fda207@googlegroups.com> (raw)
In-Reply-To: <4598be4c-7a4b-4bdd-8fd3-99b943e77823@googlegroups.com>
Am Montag, 19. März 2018 13:21:08 UTC+1 schrieb Mehdi Saada:
> Hi.
>
> When are new values of out or in out mode parameters written in the actual variable ? Is it instantaneous as I presume it is with access mode parameters, or is it done at the end of the function/procedure/accept statement ?
>
> 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 exception).
next prev parent reply other threads:[~2018-03-19 15:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-19 12:21 time of update of new values for out mode parameters Mehdi Saada
2018-03-19 13:10 ` Simon Clubley
2018-03-19 15:01 ` AdaMagica [this message]
2018-03-19 16:11 ` Mehdi Saada
2018-03-19 17:09 ` AdaMagica
2018-03-19 22:42 ` Randy Brukardt
2018-03-20 2:33 ` Mehdi Saada
2018-03-20 5:54 ` Simon Wright
2018-03-20 11:18 ` Mehdi Saada
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox