Re: creating an array



On Tue, 14 Feb 2006 19:25:05 GMT, Björn Persson wrote:

isaac2004 wrote:
how would i go about taking numbers generated by a function and storing
them into arrays in the purpose of having them on record

for Index in The_Array_Type'Range loop
The_Array(Index) := The_Function;
end loop;

The_Array_Type := (others => The_Function);

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Re: ADA Popularity Discussion Request
    ... On Tue, 17 Aug 2004 16:30:45 GMT, Dennis Lee Bieber wrote: ... >> for Index in A'Range loop ... Dmitry A. Kazakov ...
    (comp.lang.ada)
  • Re: want to do phd in fuzzy logic
    ... Can anyone help me find some universities in USA for this purpose. ... I'd suggest Berkeley: ... Dmitry A. Kazakov ...
    (comp.ai.fuzzy)
  • Re: Ada bench : count words
    ... Hmm, why not Buffer 'Address? ... > end loop; ... Dmitry A. Kazakov ...
    (comp.lang.ada)
  • Re: Design by contract and unit tests
    ... while not correct loop ... post: Halt ... Dmitry A. Kazakov ...
    (comp.object)
  • Re: Windows Ada database support.
    ... :> Dmitry, what is your plan the other way round, i.e. how do you ... You have cunningly formulated the problem so that there is no higher level! ... for I in S'Range loop ... the data to fit the SELECTion choices. ...
    (comp.lang.ada)