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.128.200 with SMTP id k69mr1289227ioi.51.1519460038180; Sat, 24 Feb 2018 00:13:58 -0800 (PST) X-Received: by 10.157.1.9 with SMTP id 9mr172042otu.8.1519460038088; Sat, 24 Feb 2018 00:13:58 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no1076776ita.0!news-out.google.com!s63ni3229itb.0!nntp.google.com!w142no1076774ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 24 Feb 2018 00:13:57 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1206:45c6:8b20:b83e:475c:ae59:ca0d; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:1206:45c6:8b20:b83e:475c:ae59:ca0d References: <15e8a72b-3644-4193-8947-b0aaf587c1c2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4881e682-113c-4e30-9178-f0f2c91ee8bc@googlegroups.com> Subject: Re: non-local pointer cannot point to local object From: gautier_niouzes@hotmail.com Injection-Date: Sat, 24 Feb 2018 08:13:58 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 4066481625 X-Received-Bytes: 1807 Xref: reader02.eternal-september.org comp.lang.ada:50619 Date: 2018-02-24T00:13:57-08:00 List-Id: Le vendredi 23 f=C3=A9vrier 2018 10:34:16 UTC+1, J-P. Rosen a =C3=A9crit=C2= =A0: > What counts for accessibility is the place where the type of the object > is declared, not where the object itself is declared. Then, wouldn't be a message like: "pointer of non-local type cannot point to local object" more helpful than "non-local pointer cannot point to local object" ? (I remember having been puzzled by the same thing long time ago...) G.