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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a88a78b31443d1a9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-26 07:02:03 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: in-out and out parameters Date: Thu, 26 Feb 2004 15:29:56 +0100 Organization: Adalog Message-ID: <260l1c.ped.ln@skymaster> References: <5f59677c.0402260600.3c27ad66@posting.google.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1077807723 31087 195.25.228.57 (26 Feb 2004 15:02:03 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 26 Feb 2004 15:02:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:5855 Date: 2004-02-26T15:29:56+01:00 List-Id: "Evangelista Sami" a �crit dans le message de news:5f59677c.0402260600.3c27ad66@posting.google.com... > hello > > i have this program : [snip] > I thought that, as I and J were passed by references, when i call E > with the > same variables, I and J denote the same object. so i was expecting to > get 100 in output. > If someone had a clear explanation i would be very thankful. I and J are elementary types, thus passed by copy. 6.2(3). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr