comp.lang.ada
 help / color / mirror / Atom feed
* Passing arrays as record fields
@ 1997-06-12  0:00 Mark J Gallagher
  1997-06-13  0:00 ` Matthew Heaney
  0 siblings, 1 reply; 3+ messages in thread
From: Mark J Gallagher @ 1997-06-12  0:00 UTC (permalink / 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!




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-06-14  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-12  0:00 Passing arrays as record fields Mark J Gallagher
1997-06-13  0:00 ` Matthew Heaney
1997-06-14  0:00   ` Robert Dewar

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