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,LOTS_OF_MONEY, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,75a8a3664688f227 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-06 13:55:42 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!isdnet!wanadoo.fr!not-for-mail From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: Parameter Modes, In In Out and Out Date: Sat, 6 Jan 2001 17:21:03 +0100 Organization: Wanadoo, l'internet avec France Telecom Message-ID: <937haq$mmh$1@wanadoo.fr> References: NNTP-Posting-Host: mix-tuileries-104-86.abo.wanadoo.fr X-Trace: wanadoo.fr 978798746 23249 193.250.183.86 (6 Jan 2001 16:32:26 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 6 Jan 2001 16:32:26 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.lang.ada:3723 Date: 2001-01-06T16:32:26+00:00 List-Id: "i.a.mcleod" a �crit dans le message news: Zmt56.57012$ca6.937797@news6-win.server.ntlworld.com... > What is the difference between In Out and Out parameters according to the > way compilers handle these. I can't see any difference. An out parameter > is still taken in. I am confused by this anyone help? > There is a huge difference. Consider: procedure P (X : out Some_Type); By looking at the specification (NOT the body), I can tell that the procedure cannot rely on the previous value of the parameter, and therefore that it is safe to call it to initialize an unitialized variable, whose value can be invalid. I could not assume this with an in out parameter. -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog