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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ffd854e360102b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-19 07:40:18 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.mesh.ad.jp!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Calling C's fopen from Ada (Aonix compiler) Date: Tue, 19 Dec 2000 15:33:17 GMT Organization: Deja.com Message-ID: <91nv3t$uq4$1@nnrp1.deja.com> References: <3A357C48.D4CAC970@nowhere.com> NNTP-Posting-Host: 205.232.38.41 X-Article-Creation-Date: Tue Dec 19 15:33:17 2000 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x73.deja.com:80 (Squid/1.1.22) for client 205.232.38.41 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3247 Date: 2000-12-19T15:33:17+00:00 List-Id: In article , gerhard.nospam@bigfoot.de (Gerhard =?iso-8859-1?Q?H=E4ring?=) wrote: > I think the error is that you used Char_Array where Interfaces.C.Chars_Ptr > should be used. So the compiler passes the arguments to fopen in by-value > instead of by-reference mode. This is possible, but would clearly violate the implementation advice. If a compiler does violate the IA, it should tell you that it does (see RM M(2)). Sent via Deja.com http://www.deja.com/