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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Funny (so to say...) interaction of "not null" and Vectors? Date: Tue, 8 Oct 2019 18:24:59 +0200 Organization: Adalog Message-ID: References: <3113a338-c9fd-4c9e-8197-9aca91d2b1d5@googlegroups.com> <9d5d30fd-028c-4a5d-9609-e101947e076a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 8 Oct 2019 16:24:59 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="31db13e27d4fe83a54936d0a2338e83d"; logging-data="25571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wFC8Bynlzc0bL7WYbFUd9" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cancel-Lock: sha1:jhH20lr0hu2wCJ9UV2761u4iJAY= In-Reply-To: <9d5d30fd-028c-4a5d-9609-e101947e076a@googlegroups.com> Content-Language: fr Openpgp: preference=signencrypt Xref: reader01.eternal-september.org comp.lang.ada:57264 Date: 2019-10-08T18:24:59+02:00 List-Id: Le 08/10/2019 à 18:01, mockturtle a écrit : > Answering my own post... I removed all the "not null" requirements and the exception disappeared... So, I guess my idea makes sense. > > Nevertheless, if you have any remark, I'll be happy to hear them. > A container has a capacity, which consists of a number of (not yet) used elements, in order to decrease the number of reallocations. These extra elements are not initialized, which is not allowed per your "not null" declaration. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr