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,100eb0a59892e906 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!v28g2000hsv.googlegroups.com!not-for-mail From: Sven Newsgroups: comp.lang.ada Subject: Re: How to pass around access types to interfaces? Date: Sat, 25 Oct 2008 01:54:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <37c7a1b3-d5c3-4a3c-a032-e70ba59d3473@v28g2000hsv.googlegroups.com> References: <031d5069-6195-4d22-ae8c-1cc6c2985ea8@a1g2000hsb.googlegroups.com> NNTP-Posting-Host: 92.193.37.76 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1224924891 19436 127.0.0.1 (25 Oct 2008 08:54:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 25 Oct 2008 08:54:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v28g2000hsv.googlegroups.com; posting-host=92.193.37.76; posting-account=oTiqeAoAAAAm9MRakyssPfX9BEL3QpPS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_5; de-de) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8218 Date: 2008-10-25T01:54:50-07:00 List-Id: On 24 Okt., 23:32, sjw wrote: > On Oct 24, 12:45=A0pm, Sven wrote: > > > I'm trying to get this code to run: > > > in some package: > > =A0 type My_Interface is interface; > > =A0 type My_Interface_Access is access all My_Interface'Class; > > > =A0 procedure Do_Something( Item : in out Some_Object; With : > > My_Interface_Access ); > > Does your compiler let you use the reserved word 'with' as the name of > a parameter? That could confuse things .. I guess not. My real code looks different, I just made those names up to show what my problem is. That was easier than to strip down my actual code to just the problem.