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.68.191.97 with SMTP id gx1mr3344423pbc.4.1353369915981; Mon, 19 Nov 2012 16:05:15 -0800 (PST) MIME-Version: 1.0 Path: s9ni12pbb.0!nntp.google.com!news.glorb.com!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Access type to member procedure of instance (Object Oriented programming in Ada) Date: Mon, 19 Nov 2012 18:05:11 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <9b0bcb37-8ae3-440f-af4f-a796702e4250@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1353369914 12613 69.95.181.76 (20 Nov 2012 00:05:14 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 20 Nov 2012 00:05:14 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-RFC2646: Format=Flowed; Response Date: 2012-11-19T18:05:11-06:00 List-Id: "Randy Brukardt" wrote in message news:k8eh4g$bs8$1@munin.nbi.dk... ... > In any case, our intent is that one could use this just like any other > procedure with the same profile. You can rename it, pass it as a formal > subprogram, call it of course, etc. So I would expect 'Access to work as > well, unless the RM explicitly says it does not. I should point out that I don't think that the code you wrote actually would solve the problem you were trying to solve. That's because you usually need to make dispatching calls, and such a call would be bound to a subprogram when you wrote the name "Message.Print" and not when you actually made the call. But I think the code you wrote is legal and you just have a compiler bug that is giving you the error that you reported. (Either that, or there is a different problem that should be reported.) Randy.