From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f0b32efa497bedb7 X-Google-Attributes: gid103376,public From: jsanchor@cs5.dasd.honeywell.com Subject: Re: Accessing C arrays Date: 1998/08/11 Message-ID: <6qpmv3$av7$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 380062387 References: <35CFEF57.DEC91044@cmis.csiro.au> Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Tue Aug 11 15:11:31 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (X11; U; SunOS 5.5.1 sun4u) Date: 1998-08-11T00:00:00+00:00 List-Id: In article <35CFEF57.DEC91044@cmis.csiro.au>, Richard Beare 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