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 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Allocators and the requirement to raise `Storage_Error` Date: Fri, 03 May 2013 11:33:29 +0200 Organization: Ada @ Home Message-ID: References: <0cd370b8-d798-4080-b346-00b1527362e8@googlegroups.com> NNTP-Posting-Host: nReaOVWq/ugo3wZUL0F24Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1612 Xref: number.nntp.dca.giganews.com comp.lang.ada:181379 Date: 2013-05-03T11:33:29+02:00 List-Id: Le Fri, 03 May 2013 10:36:22 +0200, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > I still wonder why there is no provision for an allocator to return = > `null` instead of raising an exception, when a custom function of a = > constrained subtype/type, [=E2=80=A6] Read =E2=80=9Cconstrained or not=E2=80=9D, I was too much focused on my = current use=E2=80=91case; = this do not need to be constrained. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity