comp.lang.ada
 help / color / mirror / Atom feed
From: "Nasser M. Abbasi" <nma@12000.org>
Subject: Re: questions on using the array component iterator for 2012
Date: Sat, 23 Jun 2012 07:04:26 -0500
Date: 2012-06-23T07:04:26-05:00	[thread overview]
Message-ID: <js4bcm$21r$2@speranza.aioe.org> (raw)
In-Reply-To: js4b8m$21r$1@speranza.aioe.org

On 6/23/2012 7:02 AM, Nasser M. Abbasi wrote:

> ---------------------------------------------
> with Ada.Numerics.Real_Arrays;  use Ada.Numerics.Real_Arrays;
> procedure foo is
>      A : constant Real_Matrix :=
>            ( ( 1.0,  2.0, 3.0 ) ,
>              ( 3.0,  5.0, 6.0 ) ,
>              ( 7.0,  8.0, 9.0 ) );
> begin
>      FOR e of A  LOOP
>          e := e + 1 ;
>      END
> end Matrix_Product;
> ---------------------------------------------
>

opps, need to remove the 'constant' word above, so that A can be updated
ofocurse.

--Nasser



  reply	other threads:[~2012-06-23 12:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 12:02 questions on using the array component iterator for 2012 Nasser M. Abbasi
2012-06-23 12:04 ` Nasser M. Abbasi [this message]
2012-06-25 18:19 ` Adam Beneschan
2012-06-25 18:53   ` Nasser M. Abbasi
2012-06-27 23:31 ` Shark8
replies disabled

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