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,c6e016ae58737f34 X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: win32ada design question/problem Date: 1998/11/19 Message-ID: <7323td$426$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 413623247 References: <364C5EDE.4F402D13@elca-matrix.ch> <364c90eb.10939677@SantaClara01.news.InterNex.Net> <36501A46.82C348D3@elca-matrix.ch> <36531538.483857@SantaClara01.news.InterNex.Net> <365454A8.EFCA84F9@elca-matrix.ch> X-Http-Proxy: 1.0 x10.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Nov 19 21:51:50 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1998-11-19T00:00:00+00:00 List-Id: In article <365454A8.EFCA84F9@elca-matrix.ch>, Mats.Weber@elca-matrix.ch wrote: > Tom Moran wrote: > > On the other hand, > > type String_Access is access String; > > function C_Function (X : in String_Access); > > C_Function(S'Unchecked_Access); > > will sometimes not work because some compilers (and that includes GNAT) > use fat pointers for access to unconstrained arrays (I am not saying > that this is bad). No, not if they follow the implementation advice. LRM B.3(63 & 67) An implementation should support the following interface correspondences between Ada and C. ... o An Ada in parameter of an access-to-object type with designated type T is passed as a t* argument to a C function, where t is the C type corresponding to the Ada type T. -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own