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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a88a78b31443d1a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-27 15:55:22 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: in-out and out parameters Date: Fri, 27 Feb 2004 17:54:44 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <103vm769jj96pfa@corp.supernews.com> References: <5f59677c.0402260600.3c27ad66@posting.google.com> <1077805821.190885@master.nyc.kbcfp.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:5911 Date: 2004-02-27T17:54:44-06:00 List-Id: "Hyman Rosen" wrote in message news:1077805821.190885@master.nyc.kbcfp.com... > Evangelista Sami wrote: > > I thought that, as I and J were passed by references > > In Ada, out parameters may be passed using copy-in/copy-out > rather than by reference in certain circumstances. Which are all of them in this case (elementary types are *always* passed by copy-in/copy-out). Ada has types that must always be passed by reference as well. And there are some types where the compiler is allowed to choose - but the compiler is likely to make the same choice for all parameter passing modes (for instance, if the objects are large). Thus, the choice between by-reference and by-copy depends mostly on the type of the item passed; the parameter passing mode has little or no effect on how items are passed. Randy.