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.66.78.40 with SMTP id y8mr2718717paw.9.1353323619435; Mon, 19 Nov 2012 03:13:39 -0800 (PST) Path: 6ni94944pbd.1!nntp.google.com!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 19 Nov 2012 12:13:43 +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: <9b0bcb37-8ae3-440f-af4f-a796702e4250@googlegroups.com> Message-ID: <50aa1461$0$6564$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 19 Nov 2012 12:13:37 CET NNTP-Posting-Host: ee19addf.newsspool4.arcor-online.net X-Trace: DXC=RKdb4h39JUAI7\_^6>c20J4IUK]GbD7bOnc\616M64>JLh>_cHTX3jMLn[Z5nSXS=N X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-11-19T12:13:37+01:00 List-Id: On 19.11.12 10:59, ake.ragnar.dahlgren@gmail.com wrote: > Is there a better way? Or is this the optimal way? It depends, and is easier to answer once the intent is known. The idea is that using normal means, a pointer cannot just point at any callable thing, and the indirect call cannot be expected to work, without taking the required parameters into account, somehow. If this particular implementation of the MVC pattern does not allow calling object oriented operations via objects or pointers to these, maybe an example of how to do a similar thing and guidance is found the source of (version 1 or version 3) of the AUnit testing framework.