From: dhenry <tfc.duke@gmail.com>
Subject: Re: Ada to C interfacing with access on unconstrained array
Date: Wed, 21 Oct 2009 02:25:52 -0700 (PDT)
Date: 2009-10-21T02:25:52-07:00 [thread overview]
Message-ID: <ba084f6c-41e2-402b-87df-caa490793430@m13g2000vbf.googlegroups.com> (raw)
In-Reply-To: 1pe7su4hhh3ul.t10o4zs4n5i2.dlg@40tude.net
On 20 oct, 18:11, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
wrote:
> BTW, why
>
> type Coco_Type is record
> X : Integer;
> Y : Integer;
> Nuts : Nut_Array_Access;
> end record;
>
> and not
>
> type Coco_Type (Size : Natural) is record
> X : Integer;
> Y : Integer;
> Nuts : Nut_Array_Type (1..Size);
> end record;
Well, I quickly tested the discriminant version of Coco_Type with my
application needs, and indeed I could use a discriminant to replace
the access. So I may reconsider my Coco_Type definition.
Would the discriminant version help me for my Ada->C interfacing?
Thanks,
David.
next prev parent reply other threads:[~2009-10-21 9:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 13:07 Ada to C interfacing with access on unconstrained array dhenry
2009-10-20 16:11 ` Dmitry A. Kazakov
2009-10-21 9:25 ` dhenry [this message]
2009-10-21 12:09 ` Dmitry A. Kazakov
2009-10-21 12:14 ` Dmitry A. Kazakov
2009-10-20 16:24 ` Adam Beneschan
2009-10-20 18:40 ` tmoran
2009-10-21 3:29 ` John B. Matthews
2009-10-21 9:29 ` dhenry
2009-10-21 14:16 ` John B. Matthews
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox