From: Mark J Gallagher <mjgallagher@taz.dra.hmg.gb>
Subject: Passing arrays as record fields
Date: 1997/06/12
Date: 1997-06-12T00:00:00+00:00 [thread overview]
Message-ID: <33A00D4C.F4E@taz.dra.hmg.gb> (raw)
Please forgive me if I am overlooking something very obvious, but:
I am attemting to implement a back-propagated feed-forward neural
network in ADA 95 using the latest release of gnat. I have a record
defined as
type Count_t is Integer range 0 .. Integer'Last;
type Count_a is array (Integer range <>) of Count_t;
type Net_t(... N_Neurons: Count_t ...) is record
...
Neuron_Counts: Count_a(N_Neurons);
...
end record;
and a procedure
procedure Initialise(Net: in out Net_t);
I can declare a variable Net of type Net_t and assign an array to the
Neuron_Counts field, which I can read from the block in which Net has
been declared. However, when I attempt to read the array from the
procedure Initialise, I get garbage. Help!
next reply other threads:[~1997-06-12 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-12 0:00 Mark J Gallagher [this message]
1997-06-13 0:00 ` Passing arrays as record fields Matthew Heaney
1997-06-14 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox