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,26a21b9e317dc639 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.97.162 with SMTP id eb2mr3094952wib.0.1353421653942; Tue, 20 Nov 2012 06:27:33 -0800 (PST) Path: q13ni382472wii.0!nntp.google.com!goblin1!goblin2!goblin.stu.neva.ru!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 20 Nov 2012 15:27:32 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Access type to member procedure of instance (Object Oriented programming in Ada) References: <9b0bcb37-8ae3-440f-af4f-a796702e4250@googlegroups.com> In-Reply-To: X-Enigmail-Version: 1.4.6 Message-ID: <50ab9354$0$6554$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 20 Nov 2012 15:27:32 CET NNTP-Posting-Host: e73139ce.newsspool4.arcor-online.net X-Trace: DXC=e1@0D:Lh>_cHTX3j=19lRS[af771 X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: 2012-11-20T15:27:32+01:00 List-Id: On 20.11.12 12:28, Brian Drummond wrote: > procedure Main is > Message : Some_Package.Message_Type; > > procedure P renames Message.Print; > begin > Message.Print; > P; > end Main; > ... > ./main > Hello > Hello > > Damn that's nice! > Where's the upvote button on this thing? IMHO, the Ada Wikibook is in need of a chapter on the value of names, and opportunities for (re)naming. (X renames Some_Ptr.all also has some fans, I think.) The Ada reddit allows upvoting, once there is a link to, or reddit post about, the desired topic.