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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.26.67 with SMTP id a64mr1003655ioa.16.1519388363778; Fri, 23 Feb 2018 04:19:23 -0800 (PST) X-Received: by 10.157.68.105 with SMTP id f38mr60122otj.1.1519388363662; Fri, 23 Feb 2018 04:19:23 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!goblin3!goblin2!goblin.stu.neva.ru!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!w142no746794ita.0!news-out.google.com!s63ni2165itb.0!nntp.google.com!o66no743153ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 Feb 2018 04:19:23 -0800 (PST) In-Reply-To: <15e8a72b-3644-4193-8947-b0aaf587c1c2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83cd:cae7:d582:cf6a:d66e:9a92; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83cd:cae7:d582:cf6a:d66e:9a92 References: <15e8a72b-3644-4193-8947-b0aaf587c1c2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: non-local pointer cannot point to local object From: AdaMagica Injection-Date: Fri, 23 Feb 2018 12:19:23 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1002215841 X-Received-Bytes: 1902 Xref: reader02.eternal-september.org comp.lang.ada:50598 Date: 2018-02-23T04:19:23-08:00 List-Id: Am Freitag, 23. Februar 2018 09:54:28 UTC+1 schrieb art...@nihamkin.com: > Can someone explain why I get "non-local pointer cannot point to local object" error, even though it looks like "Arr" and "Arr_Access" have the same accessibility level? Just a little example: type Pointer is access Integer; Long: Pointer; declare Local: aliased Integer := -42; Short: Pointer := Local'Access; -- illegal begin Long := Short; end; -- If this were legal, Long would point to a nonexistent object