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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88f482297d40dac1 X-Google-Attributes: gid103376,public From: "Keith Allan Shillington" Subject: Re: Question about new allocator Date: 1997/02/12 Message-ID: <01bc1907$ecf29e80$fc00af88@godiva>#1/1 X-Deja-AN: 218298512 Sender: news@thomsoft.com (USENET News Admin @flash) X-Nntp-Posting-Host: leonidas References: Organization: Aonix, San Diego, CA, USA Newsgroups: comp.lang.ada Date: 1997-02-12T00:00:00+00:00 List-Id: The convention in Ada is to raise the exception STORAGE_ERROR. In RM95 it is alluded to in the note at 4.8(14), and explained more fully in 13.11 (Storage Management). You will find, in reading 13.11 that the implementor has some choice in the matter. In order to accomplish your objective, you may want to implement a Storage_Pool that allows you to check space available. jes2358@imap3.asu.edu wrote in article ... > I am wondering if the new allocator will return NULL if the heap is full > as it does in C++ or if Ada has some other convention. I am new to Ada > and can't seem to find this discussed anywhere. The context I am > thinking about this is in trying to write a Boolean type IsFull function > for a Queue package. If you can help with a suggestion, please email to > jsherman@asu.edu. Thanks in advance. >