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,ac6f6c30c45f808a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada equivalent for C-pointer? Date: 15 Jan 2005 17:11:40 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <41E7F653.2F899F47@alfred-hilscher.de> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1105809144 12982 62.49.19.209 (15 Jan 2005 17:12:24 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 15 Jan 2005 17:12:24 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:7820 Date: 2005-01-15T17:11:40+00:00 List-Id: Nick Roberts writes: > I think the 'in out' mode would work with GNAT/GCC, but I'd suggest > testing it to make sure. I suppose using the 'access' mode might be > clearer, and it might be slightly more efficient. with Interfaces.C; function Wibble (Number: in out Interfaces.C.int) return Interfaces.C.int; pragma Import(C,Wibble,"wibble"); smaug.pushface.org[4]$ gnatgcc wibble.ads wibble.ads:2:18: functions can only have "in" parameters -- Simon Wright 100% Ada, no bugs.