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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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 Received: by 10.224.205.65 with SMTP id fp1mr6095667qab.4.1354551446601; Mon, 03 Dec 2012 08:17:26 -0800 (PST) Received: by 10.49.96.196 with SMTP id du4mr2427066qeb.37.1354551446577; Mon, 03 Dec 2012 08:17:26 -0800 (PST) Path: gf5ni46692076qab.0!nntp.google.com!c8no28183qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 3 Dec 2012 08:17:26 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.203.8; posting-account=l8k8IwoAAADeDydswOzwNzmn10qOk9gt NNTP-Posting-Host: 136.163.203.8 References: <9b0bcb37-8ae3-440f-af4f-a796702e4250@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Access type to member procedure of instance (Object Oriented programming in Ada) From: ake.ragnar.dahlgren@gmail.com Injection-Date: Mon, 03 Dec 2012 16:17:26 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-03T08:17:26-08:00 List-Id: On Thursday, November 22, 2012 1:13:27 PM UTC+1, Brian Drummond wrote: > On Thu, 22 Nov 2012 01:47:39 -0800, ake.ragnar.dahlgren wrote: > I want t= o thank everybody for replying. I had no idea about the > "renames" feature= as Randy pointed out. Brian expressed it very well: I > am astonished! But= heed Randy's warning : (I may have been confused among the discussion and = speculation, but my understanding is this: corrections welcome!) the Rename= s is legal and intended to work as demonstrated: taking its access is ILLEG= AL and only works because of an apparent bug in Gnat (which I for one am NO= T jumping to report!). And therefore using it is a BAD IDEA because it may = well go away in the future (as well as not being portable) It might be usef= ul to see the reports from other compilers on the example... > As for the G= tkada application I have given up on implementing the MVC > pattern using t= agged types. Instead I choose the same approach as was > done in the Ada in= Denmark wiki. I believe that uses "tagged types" internally, but it is cer= tainly easier... See also "Gate3" available at http://sourceforge.net/proje= cts/lorenz/ which will auto-generate the Ada framework shown on that Ada.dk= page, from your Glade UI XML file. - Brian Thank you for your suggestion to use Gate3. I will check it out. Yesterday I posted Ada code which uses Access on a renamed procedure. It's = not clear to me but is it really illegal as you write? I hope you are not s= ure since you wrote corrections are welcome. Best regards, =C5ke Ragnar Dahlgren