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!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Sender: obry@PASCAL Newsgroups: comp.lang.ada Subject: Re: Ada equivalent for C-pointer? References: <41E7F653.2F899F47@alfred-hilscher.de> From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Date: 15 Jan 2005 18:49:37 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 82.120.19.136 X-Trace: 1105811378 news.wanadoo.fr 6403 82.120.19.136:3041 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:7822 Date: 2005-01-15T18:49:37+01:00 List-Id: Nick Roberts writes: > Pascal Obry wrote: > > > I don't think so. Here Number will be passed by value, no? > > No, I don't think so (with GNAT/GCC). GNAT/GCC is not Ada ;) So for portability reasons it is certainly wrong. Moreover, are you sure it is the case for all GNAT/GCC targets ? > it to make sure. I suppose using the 'access' mode might be clearer, and it > might be slightly more efficient. Don't know if it is more efficient, but it is portable ! Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595