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,dfdb3e9be36e818e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.28.135 with SMTP id b7mr21700801pbh.8.1321904719322; Mon, 21 Nov 2011 11:45:19 -0800 (PST) Path: lh20ni2604pbb.0!nntp.google.com!news1.google.com!news.glorb.com!xmission!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: type access Parent'Class Date: Mon, 21 Nov 2011 14:45:18 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <7fd768a4-f97b-4045-8bab-49d2a3897a61@p2g2000vbj.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1321904718 13861 192.74.137.71 (21 Nov 2011 19:45:18 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 21 Nov 2011 19:45:18 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:Re3h/sCtSUCvDgAv20XIe5Wb4j8= Xref: news1.google.com comp.lang.ada:19000 Content-Type: text/plain; charset=us-ascii Date: 2011-11-21T14:45:18-05:00 List-Id: Yukicanis writes: > BTW, I just discovered that > > B := A.all'Access; > > also seems to work (with access all). But won't the rigth hand side > result in an anonymous type again? No, the type of Blah'Access is always taken from the context (the expected type, which is the (named) type of B in this case). - Bob