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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7348b9598602fc10 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.219.170 with SMTP id pp10mr4134389pbc.1.1340384310843; Fri, 22 Jun 2012 09:58:30 -0700 (PDT) Path: l9ni7510pbj.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Limited_Controlled and out parameters Date: Fri, 22 Jun 2012 18:58:31 +0200 Organization: A noiseless patient Spider Message-ID: References: <544352ec-9d9e-4f08-8629-50ef394ab846@googlegroups.com> <08532996-7c1f-4521-b1fc-41a03e26fcce@googlegroups.com> Mime-Version: 1.0 Injection-Date: Fri, 22 Jun 2012 16:58:30 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="19430"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zejzL6ARkocuYSaKJIJu0" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <08532996-7c1f-4521-b1fc-41a03e26fcce@googlegroups.com> Cancel-Lock: sha1:5RlcPxZN5V6ASbPNSJOo1uoa5vc= X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-06-22T18:58:31+02:00 List-Id: Le 22/06/2012 17:43, Adam Beneschan a �crit : > I also wouldn't worry about "cheating". For by-reference parameters, > I don't think there's that much difference between OUT and IN OUT, if > any. [...] >From the point of view of the implementer, you are right. However, by having an OUT parameter, you are telling your user: "I don't use the value in your variable; even if it is uninitialized, it's OK". There is some value to preserving that aspect. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr