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,fa22a73e140a6fd1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.73.229 with SMTP id o5mr11997600pbv.7.1326148550982; Mon, 09 Jan 2012 14:35:50 -0800 (PST) Path: lh20ni161419pbb.0!nntp.google.com!news2.google.com!postnews.google.com!f11g2000yql.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Object-Oriented style question Date: Mon, 9 Jan 2012 14:34:17 -0800 (PST) Organization: http://groups.google.com Message-ID: <2c213807-20cd-4b06-b2fa-c27827c9b747@f11g2000yql.googlegroups.com> References: <4f098fcb$0$6577$9b4e6d93@newsspool3.arcor-online.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1326148550 15779 127.0.0.1 (9 Jan 2012 22:35:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 Jan 2012 22:35:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f11g2000yql.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-01-09T14:34:17-08:00 List-Id: On Jan 8, 6:18=A0am, Robert A Duff wrote: > Georg Bauhaus writes: > > =A0 =A0function Info (Item : in T) return Value; > > This is the right way to do it. =A0Don't use access types when > you don't need to. =A0That goes double for anonymous access > types, and triple for cases involving run-time accessibility > checks, as the cases below do. > > I can't think of any good reason to use access parameters > in Ada. =A0Note: "access parameter" does not mean "parameter of > an access type", it means "parameter of an ANONYMOUS access type". I presume you mean "parameter of an anonymous access-to-object type"? I think there are very good reasons for using anonymous access- subprogram parameters. -- Adam