From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main
Date: Fri, 30 Sep 2016 17:01:23 -0700
Date: 2016-09-30T17:01:23-07:00 [thread overview]
Message-ID: <nsmuc8$ts9$1@dont-email.me> (raw)
In-Reply-To: <44638b2d-c7fb-4113-9262-d57dd1cd5629@googlegroups.com>
On 09/30/2016 03:27 PM, diane74@gmail.com wrote:
> Hello again, new Ada programmer with a hopefully easy question.
> I am trying to take a 2d array pass it to a package have the package change the data in the 2d array and send the same 2d array (with modified data) back to the main program. I am currently away from my computer or I would show you my broken code, though I doubt it would be useful.
It sounds as if you might be interested in "Formal Parameter Modes", defined in
ARM 6.2:
http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-6-2.html
The mode defines the direction of data flow between the subprogram and the
caller: "in" means data flows from the caller into the subprogram; "out" means
data flows from the subprogram back to the caller; what "in out" means is left
as an exercise for the reader.
--
Jeff Carter
"Run away! Run away!"
Monty Python and the Holy Grail
58
next prev parent reply other threads:[~2016-10-01 0:01 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-30 22:27 Passing a 2d array into a package and returning the same processed 2d back to main diane74
2016-10-01 0:01 ` Jeffrey R. Carter [this message]
2016-10-01 20:01 ` Aurele
2016-10-01 21:04 ` Jeffrey R. Carter
2016-10-01 21:59 ` Aurele
2016-10-01 22:16 ` Jeffrey R. Carter
2016-10-02 0:09 ` Aurele
2016-10-02 7:31 ` Simon Wright
2016-10-03 18:36 ` James Brewer
2016-10-03 19:43 ` Björn Lundin
2016-10-03 21:59 ` James Brewer
2016-10-03 23:16 ` Anh Vo
2016-10-04 11:29 ` Brian Drummond
2016-10-05 16:16 ` James Brewer
2016-10-05 17:19 ` James Brewer
2016-10-05 18:57 ` Jeffrey R. Carter
2016-10-05 19:53 ` James Brewer
2016-10-05 19:57 ` AdaMagica
2016-10-05 20:17 ` Jeffrey R. Carter
2016-10-05 20:58 ` James Brewer
2016-10-05 22:11 ` Anh Vo
2016-10-05 19:47 ` Anh Vo
2016-10-05 20:30 ` James Brewer
2016-10-03 20:16 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox