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-Thread: 103376,7348b9598602fc10 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.238.65 with SMTP id vi1mr4405399pbc.7.1340392356452; Fri, 22 Jun 2012 12:12:36 -0700 (PDT) Path: l9ni7862pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Limited_Controlled and out parameters Date: Fri, 22 Jun 2012 12:12:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <544352ec-9d9e-4f08-8629-50ef394ab846@googlegroups.com> <08532996-7c1f-4521-b1fc-41a03e26fcce@googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1340392356 30701 127.0.0.1 (22 Jun 2012 19:12:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 22 Jun 2012 19:12:36 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-22T12:12:33-07:00 List-Id: On Friday, June 22, 2012 9:58:31 AM UTC-7, J-P. Rosen wrote: > Le 22/06/2012 17:43, Adam Beneschan a =E9crit : >=20 > > 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". Can a controlled variable (or subcomponent) ever really be uninitialized? = I guess it might, or it might be partly uninitialized. However, if the con= trolled type has a Finalize routine that reads components of the type, thos= e components had darn well better not be uninitialized garbage. (That is,= allowing for cases where, say, a Boolean component indicates whether other= components in the record are initialized or not. But that Boolean had bet= ter not be garbage.) -- Adam