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,b0ad1d51e4ffa82b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.247.MISMATCH!news-out.readnews.com!news-xxxfer.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: access types Date: Sun, 01 Jul 2007 10:57:17 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3b3itu0t79zl$.czig4w8nzdmp.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1183301837 11535 192.74.137.71 (1 Jul 2007 14:57:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 1 Jul 2007 14:57:17 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:6lSBxLCcRoH22Z2u4T3UmDbfcHs= Xref: g2news1.google.com comp.lang.ada:16372 Date: 2007-07-01T10:57:17-04:00 List-Id: "Dmitry A. Kazakov" writes: > On Sat, 30 Jun 2007 21:54:15 -0400, Robert A Duff wrote: > >> Brian May writes: >> >>> V := U; >> >> Try V := U.all'Access. > > No, that won't work, because the access types are pool-specific. Ah, thanks, I missed that. >... It is a > nasty problem one has to fight all the way when dealing with tagged types > and pool-specific access types. > > Sorry, Brian, you probably have to resort to Unchecked_Conversion or else > add "all" to your access types. "Doctor, it hurts when I forget 'all'." "So don't do that." ;-) Access-to-classwide should normally use "all". In fact, you won't go too far wrong if you always say "all" for all named access-to-variable types. Unch_Conv is not the right solution, here! - Bob