From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: Tasking, AWS and segmentation faults
Date: Thu, 05 Apr 2012 19:09:19 +0200
Date: 2012-04-05T19:09:19+02:00 [thread overview]
Message-ID: <jlkjjv$38r$1@dont-email.me> (raw)
In-Reply-To: <m2bon6i1xq.fsf@pushface.org>
Le 05/04/2012 18:22, Simon Wright a �crit :
> What Georg meant was that your called subprograms could still take array
> parameters:
>
> type Arr is array (Natural range <>) of Thing;
>
> procedure Sub (A : in out Arr);
>
> type Arr_P is access Arr;
>
> Actual : Arr_P := new Arr (0 .. 65535);
>
> Sub (A => Actual.all);
or even better:
Actual_P : Arr_P := new Arr (0 .. 65535);
Actual : Arr renames Actual_P.all;
Sub (A => Actual);
and forget totally about pointers!
--
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr
next prev parent reply other threads:[~2012-04-05 17:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-04 16:08 Tasking, AWS and segmentation faults tonyg
2012-04-04 19:09 ` Vadim Godunko
2012-04-04 20:27 ` Georg Bauhaus
2012-04-04 21:21 ` Jeffrey Carter
2012-04-05 10:38 ` tonyg
2012-04-05 11:03 ` Georg Bauhaus
2012-04-05 15:20 ` tonyg
2012-04-05 16:22 ` Simon Wright
2012-04-05 17:09 ` J-P. Rosen [this message]
2012-04-05 16:58 ` Pascal Obry
2012-04-05 17:14 ` Jeffrey Carter
2012-04-05 17:18 ` Pascal Obry
2012-04-05 18:30 ` Jeffrey Carter
2012-04-08 8:09 ` tonyg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox