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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,75a8a3664688f227 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-10 14:04:19 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!newspeer.monmouth.com!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: Parameter Modes, In In Out and Out Date: Wed, 10 Jan 2001 21:53:50 GMT Organization: Deja.com Message-ID: <93ill8$j95$1@nnrp1.deja.com> References: <937haq$mmh$1@wanadoo.fr> <93f9pi$uaa$1@s1.read.news.oleane.net> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Wed Jan 10 21:53:50 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x57.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:3880 Date: 2001-01-10T21:53:50+00:00 List-Id: In article <93f9pi$uaa$1@s1.read.news.oleane.net>, "Thierry Lelegard" wrote: > So, Jean-Pierre Rosen is right, never use "in out" for "out" > when you cannot be sure that the actual parameter is properly > initialized. Just to once again clarify. There are two cases here 1. The parameter is a by-copy type (or a type that can optionally be passed by copy). In this case, the advice above corresponds to advice to avoid definite (or potential) bounded errors. Important indeed! Note that the implementation which raised an error was not only correct, but friendly, since it is friendly for implementations to detect bounded errors. 2. The parameter is a by-reference type, in this case the above advice is just a matter of stylistic considerations. Sent via Deja.com http://www.deja.com/