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-Google-Thread: 103376,a65bb7bde679ed1d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.15.105 with SMTP id w9mr3606397pbc.7.1322650621526; Wed, 30 Nov 2011 02:57:01 -0800 (PST) Path: lh20ni43708pbb.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ann: Natools.Chunked_Strings, beta 1 Date: Wed, 30 Nov 2011 11:57:15 +0100 Organization: cbb software GmbH Message-ID: References: <4ed4fc37$0$2537$ba4acef3@reader.news.orange.fr> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.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 Xref: news1.google.com comp.lang.ada:19260 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2011-11-30T11:57:15+01:00 List-Id: On Wed, 30 Nov 2011 11:39:30 +0100, Yannick Duch�ne (Hibou57) wrote: > By the way, I feel the original message is based on erroneous assumptions > about implementations of Ada.Strings.Unbounded. Nothing in the RM requires > an implementations to use a single array for unbounded strings, and on the > opposite, it says `type Unbounded_String is private;`. I false assumption is IMO that strings are large and need to be manipulated as a whole, e.g. pieces substituted etc. In each such case the user should consider: 1. maybe the pattern he uses is wrong (e.g. poor parsing techniques splitting and merging strings physically) 2. maybe string is an inappropriate data structure and something like text buffer should be used instead. It is C where everything is char*, not Ada. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de