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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.50.4.34 with SMTP id h2mr41482510igh.8.1436254960191; Tue, 07 Jul 2015 00:42:40 -0700 (PDT) Path: buffer2.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!qs7no1572616igc.0!news-out.google.com!a16ni11442ign.0!nntp.google.com!news.glorb.com!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Dynamic allocation in the predefined language environment Date: Tue, 7 Jul 2015 09:42:40 +0200 Organization: cbb software GmbH Message-ID: <1m8r6qty3qecf.1l9e7pzo3lg8p.dlg@40tude.net> References: <559a623d$0$293$14726298@news.sunsite.dk> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: enOx0b+nfqkc2k+TNpOejg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Xref: number.nntp.giganews.com comp.lang.ada:193978 Date: 2015-07-07T09:42:40+02:00 List-Id: On Mon, 06 Jul 2015 11:13:17 +0000, Matthias-Christian Ott wrote: > I need to store strings of unknown length. For security reasons I set > limits for the types of strings the software handles and I used > bounded-length strings to store them. Why don't you use plain strings allocated in an arena pool? Usually this covers most of cases where you need controlled allocation of constant and semi-constant strings. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de