comp.lang.ada
 help / color / mirror / Atom feed
From: jsanchor@cs5.dasd.honeywell.com
Subject: Re: Accessing C arrays
Date: 1998/08/11
Date: 1998-08-11T00:00:00+00:00	[thread overview]
Message-ID: <6qpmv3$av7$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 35CFEF57.DEC91044@cmis.csiro.au

In article <35CFEF57.DEC91044@cmis.csiro.au>,
  Richard Beare <Richard.Beare@cmis.csiro.au> wrote:
>
> ----------------------------------------------------
>
> I'm not entirely sure what is wrong with the last function, but it
> doesn't compile with gnat. The message is
>
>  L := Ada_Version'Access;
>                    |
>         >>> object subtype must statically match designated subtype
>
> you could say:
   package Convert is new System.Address_to_access_conversions(Image_2d);

   ptr_to_image : Convert.Object_Pointer;
   ptr_to_image := CONVERT_TO_NVM_TYPE.To_Pointer(Ada_Version.all'address);
         L := H_Image_2d(ptr_to_image);
> Hopefully this works for you.

Jay S.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




      reply	other threads:[~1998-08-11  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-11  0:00 Accessing C arrays Richard Beare
1998-08-11  0:00 ` jsanchor [this message]
replies disabled

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