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,26a21b9e317dc639 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.84.202 with SMTP id b10mr57030paz.43.1353586407299; Thu, 22 Nov 2012 04:13:27 -0800 (PST) Path: s9ni5396pbb.0!nntp.google.com!news.glorb.com!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Access type to member procedure of instance (Object Oriented programming in Ada) Date: Thu, 22 Nov 2012 12:13:26 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <9b0bcb37-8ae3-440f-af4f-a796702e4250@googlegroups.com> Mime-Version: 1.0 Injection-Date: Thu, 22 Nov 2012 12:13:26 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="dfff62e1e537b55df42008571c03e0fe"; logging-data="4774"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+bpvksOGECa1jgvO4VfjTjRokqJfx4/jY=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:sJTjaRuW5p/rMRWC/wYSjVzUCh0= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-11-22T12:13:26+00:00 List-Id: On Thu, 22 Nov 2012 01:47:39 -0800, ake.ragnar.dahlgren wrote: > I want to 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 Renames is legal and intended to work as demonstrated: taking its access is ILLEGAL and only works because of an apparent bug in Gnat (which I for one am NOT 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 useful to see the reports from other compilers on the example... > As for the Gtkada application I have given up on implementing the MVC > pattern using tagged 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 certainly easier... See also "Gate3" available at http://sourceforge.net/projects/lorenz/ which will auto-generate the Ada framework shown on that Ada.dk page, from your Glade UI XML file. - Brian