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 autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.107.111.17 with SMTP id k17mr2369047ioc.28.1519428622160; Fri, 23 Feb 2018 15:30:22 -0800 (PST) X-Received: by 10.157.83.129 with SMTP id w1mr134949otg.2.1519428621783; Fri, 23 Feb 2018 15:30:21 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!o66no964582ita.0!news-out.google.com!s63ni2910itb.0!nntp.google.com!w142no967508ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 23 Feb 2018 15:30:21 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.240.211.93; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.240.211.93 References: <93229821-ae3d-4e47-91d9-a20ff3c1f1a7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: two questions on allocators From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Fri, 23 Feb 2018 23:30:22 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 1321586839 X-Received-Bytes: 1932 Xref: reader02.eternal-september.org comp.lang.ada:50618 Date: 2018-02-23T15:30:21-08:00 List-Id: > Finally, the phrase "new not null B" is in error, as you cannot say "new not null" in Ada. Here's a simpler exemple ( I think I mixed up A and B, which made my statement meaningless): type A is access INTEGER; type B is access not null A; Object_B : B := new A; --- ** allowed type A is access INTEGER; type B is access A; Object_B : B := new not null A; -- illegal, but wouldn't that be the same than * ? Anyway, let's forget it. > The type of the allocator refers to a concrete instance of System.Storage_Pools.Root_Storage_Pool I remember... the pool, along with the data it contains shall not outlive its data's tag, makes sense.