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.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.107.181.20 with SMTP id e20mr4411107iof.43.1522671303788; Mon, 02 Apr 2018 05:15:03 -0700 (PDT) X-Received: by 2002:a9d:1f58:: with SMTP id x24-v6mr532750otx.9.1522671303531; Mon, 02 Apr 2018 05:15:03 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.mixmin.net!news.unit0.net!peer02.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u184-v6no3969712ita.0!news-out.google.com!u64-v6ni5107itb.0!nntp.google.com!u184-v6no3969707ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 2 Apr 2018 05:15:03 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.245.160.83; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.245.160.83 References: <29943b13-00d1-443a-82f2-f55272770109@googlegroups.com> <12766e64-7641-45a0-8e76-8330a3b3c101@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <07ca8c15-bf8d-432c-beba-99201bb70729@googlegroups.com> Subject: Re: limited agregate and limited components default initialization From: Jean-Claude Rostaing <00120260a@gmail.com> Injection-Date: Mon, 02 Apr 2018 12:15:03 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2465 X-Received-Body-CRC: 1988237644 Xref: reader02.eternal-september.org comp.lang.ada:51295 Date: 2018-04-02T05:15:03-07:00 List-Id: I saw something else too, and I suspect it has to do with the changing rules for anonymous access types conversion form 95 to 2012: This: Token := Pointer(Value => new End_Of_Expression); is my book, it doesn't work, it says: expressions.adb:40:32: expected type "TOKEN_ACCESS" defined at expressions.ads:12 expressions.adb:40:32: found type access to "End_Of_Expression" defined at line 40 TOKEN_ACCESS is a mere (public) named access type. I am positive I changed nothing to the Pointer function, except its name, to "Set". And converting to TOKEN_ACCESS leads to this: argument of conversion cannot be an allocator expressions.adb:40:32: use qualified expression instead expressions.adb:40:32: target type must be general access type expressions.adb:40:32: add "all" to type "TOKEN_ACCESS" defined at I sure DON'T want to make it a general access type, I don't see why I should !