comp.lang.ada
 help / color / mirror / Atom feed
From: Mace Ayres <mace.ayres@icloud.com>
Subject: Passing Range Parameters to new instance of unbounded, boxed <> array in Ada
Date: Tue, 13 Jul 2021 19:53:49 -0700 (PDT)	[thread overview]
Message-ID: <41b30ab1-9114-4bfa-baeb-94c39a4be00an@googlegroups.com> (raw)

1) I declare - Type a_gear is array(index range <>) of Intgeger;

2) I want to create an instance of type a_gear
     Gear : a_gear (var_strt..var_end);
————————————- 
Both 1 and 2 must be declared after …. an ‘Is’ and before a ‘BEGIN’ of any code block

but I can’t code a sub program to get a user’s input for var_strt and var_end until after a BEGIN statement which too late to pass to the parameterized unbounded/Box array gear.

I am not getting the proper visibility and scope to capture user’s parameters before I declare an instance, gear, of the type a_gear, an unbounded array?

             reply	other threads:[~2021-07-14  2:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14  2:53 Mace Ayres [this message]
2021-07-14  6:18 ` Passing Range Parameters to new instance of unbounded, boxed <> array in Ada J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox