comp.lang.ada
 help / color / mirror / Atom feed
From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Passing a 2d array into a package and returning the same processed 2d back to main
Date: Wed, 5 Oct 2016 15:11:44 -0700 (PDT)
Date: 2016-10-05T15:11:44-07:00	[thread overview]
Message-ID: <b3e7b276-3283-41ac-a384-7bae26f6ef6e@googlegroups.com> (raw)
In-Reply-To: <7c7607d3-a40f-4a47-b22e-6bb41b94aa1f@googlegroups.com>

On Wednesday, October 5, 2016 at 1:58:40 PM UTC-7, James Brewer wrote:
> On Wednesday, October 5, 2016 at 3:18:01 PM UTC-5, Jeffrey R. Carter wrote:
> > On 10/05/2016 12:53 PM, James Brewer wrote:
> > >
> > > Please remember I'm just starting in this language. So if I say anything
> > > ridiculous it is not intentional. It doesn't seem to allow for declarations
> > > after the "begin" statement. Also, it worked without the package
> > > implementation as best as I could tell with my test data.
> > 
> > Yes, after "begin" but before "exception" or "end" you can only have statements. 
> > But it would be a good idea to be familiar with the kinds of statements, which 
> > are given in ARM 5
> > 
> > http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-5.html
> > 
> > ARM 5.1 lists all the kinds of statements. Of particular interest might be the 
> > block statement, described in more detail in ARM 5.6.
> > 
> > -- 
> > Jeff Carter
> > "You can never forget too much about C++."
> > 115
> 
> Implementing the block statement looks like it may have solved the problem. I will test it further.

I make it work, also. Just like all mentioned, your array object does not match with array dimension in input.txt file. Since you have solved your problem, my solution is not necessary.

Anh Vo


  reply	other threads:[~2016-10-05 22:11 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
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 [this message]
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