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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: two questions on allocators Date: Wed, 28 Feb 2018 11:09:10 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <93229821-ae3d-4e47-91d9-a20ff3c1f1a7@googlegroups.com> <55fda761-55f8-4b25-b8ab-0125acf16b05@googlegroups.com> NNTP-Posting-Host: shell02.theworld.com Mime-Version: 1.0 Content-Type: text/plain X-Trace: pcls7.std.com 1519834150 20148 192.74.137.72 (28 Feb 2018 16:09:10 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 28 Feb 2018 16:09:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:qXgnr/q0ctWCvZMNCXeDk095oVs= Xref: reader02.eternal-september.org comp.lang.ada:50712 Date: 2018-02-28T11:09:10-05:00 List-Id: Mehdi Saada <00120260a@gmail.com> writes: > I saw that since I (tried to) read the AARM, but didn't really got > it. Now it's ok. If the problem of these null forbidding hypothetic > subtypes is that can't have the default null value, why not just require > the user to give one ? Don't use "not null"; it's broken as you see. Instead, do: subtype S is T with Predicate => S /= null; - Bob