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!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem with Unbounded Strings Date: Fri, 04 Dec 2015 21:59:18 +0000 Organization: A noiseless patient Spider Message-ID: References: <274dc49b-b7cd-4eef-b333-34bae665c992@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="6f4ba2ce0f80cf6975f919f4f22c2ad9"; logging-data="8155"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1998YTHeu21ON4dNgvWMYfxAO+ubCnWePw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:yB/Zq+6U2NNvkIzLuzbbdNmWDbM= sha1:wIQX7p4mL6gtJY7STJWax2vT5fQ= Xref: news.eternal-september.org comp.lang.ada:28645 Date: 2015-12-04T21:59:18+00:00 List-Id: Laurent writes: > The Log_File I have reduced it to the minimum too: > > 0123456789 > abcdefghijklmnopqrstuvwxyz > ABCDEFGHIJKLMNOPQRSTUVWXYZ > > I expect my code to do this: > > 1st read: 0123456789 > append to the buffer which is empty so content of buffer is: 0123456789 > > 2nd read: abcdefghijklmnopqrstuvwxyz > append to buffer so it becomes: 0123456789abcdefghijklmnopqrstuvwxyz > > 3rd read: ABCDEFGHIJKLMNOPQRSTUVWXYZ > append to buffer so it would be: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ This is exactly what I get with OS X El Capitan & FSF GCC 5.2.0. Also GNAT GPL 2015.