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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f0d9db8126fd91cb X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Converting pointers to non nul-terminated C "strings" to Ada string Date: Sat, 14 Feb 2009 12:47:23 +0100 Organization: Jacob Sparre Andersen Message-ID: References: <6334ebd3-ca8d-4f1c-b96a-b49c20650d31@v15g2000yqn.googlegroups.com> NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: munin.nbi.dk 1234612043 11450 85.82.239.166 (14 Feb 2009 11:47:23 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 14 Feb 2009 11:47:23 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:5k0E4mSXlL4zK6b/umnbkZ/tDGQ= Xref: g2news1.google.com comp.lang.ada:3635 Date: 2009-02-14T12:47:23+01:00 List-Id: Yannick Duch�ne wrote: > A dirty thing which comes into my mind : when you write > > procedure memory_data > (data : out CS.chars_ptr; > size : out C.int); > > you may doing some assumption about the the compiler's generated > code. In my humble opinion, pointers in C declarations should be > mapped to access types in Ada. There is nothing I know which assert > that an Ada implementation must use access types to implement out > parameters. RM95 B.3(68) comes to mind. Greetings, Jacob -- Ada - the programming language still ahead of its time.