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: buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!enother.net!enother.net!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: What do you think about this? References: <9894cde7-2cf8-4060-be65-857812ad7b09@googlegroups.com> <17436268-aceb-461f-bdcf-eee8436cd0e6@googlegroups.com> <86y4jaqzdx.fsf@stephe-leake.org> <86oak5qulb.fsf@stephe-leake.org> <86k2usq66p.fsf@stephe-leake.org> <864mllqv7c.fsf@stephe-leake.org> Date: Sun, 05 Jul 2015 08:55:23 -0500 Message-ID: <864mli3e0k.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) Cancel-Lock: sha1:JYVsrtHom3BUvPXvJx7i+jcjhKs= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 1567d5599374be97f808419904 X-Received-Bytes: 1842 X-Received-Body-CRC: 1034589712 Xref: number.nntp.giganews.com comp.lang.ada:193927 Date: 2015-07-05T08:55:23-05:00 List-Id: "Randy Brukardt" writes: > "Stephen Leake" wrote in message > news:864mllqv7c.fsf@stephe-leake.org... >> Using a bounded string always involves a hidden length limit; if it's >> too small, you'll hit it sometime, if it's too big, you're wasting >> storage. > > Agreed, but in that case he probably should be using an unbounded string. > Let the compiler do the work, don't write memory management code yourself > (you'll always get it wrong). The use case is declaring arrays of constant strings; no memory management involved. -- -- Stephe