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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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,UTF8 Received: by 10.68.16.106 with SMTP id f10mr3630159pbd.8.1322651138947; Wed, 30 Nov 2011 03:05:38 -0800 (PST) Path: lh20ni43752pbb.0!nntp.google.com!news1.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Natasha Kerensikova Newsgroups: comp.lang.ada Subject: Re: Ann: Natools.Chunked_Strings, beta 1 Date: Wed, 30 Nov 2011 11:04:24 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Wed, 30 Nov 2011 11:04:24 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="Mda950WjNwNLAFOE7yJXQw"; logging-data="4382"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182geannP/tdFjAn1aHMNwY" User-Agent: slrn/0.9.9p1 (FreeBSD) Cancel-Lock: sha1:mcKfe/4wq+P9U18whBxksUgvscQ= Xref: news1.google.com comp.lang.ada:19261 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Date: 2011-11-30T11:04:24+00:00 List-Id: Hello, On 2011-11-30, Yannick DuchĂȘne wrote: > Le Tue, 29 Nov 2011 16:16:16 +0100, Natasha Kerensikova > a Ă©crit: >> Chunked_String is a string container that exposes the same interface as >> Unbounded_String > I don't see the same interface as that of Ada.Strings.Unbounded in > Natools.Chunked_Strings. Really? I did took all the subprogram names, with the same argument names and order, and the same behavior. I only changed the type from Unbounded_String to Chunked_String (obvisouly), and when a new Chunked_String is created, I added Allocation_Unit and Chunk_Size with default values, so that old calls to Ada.Strings.Unbounded subprogram still work. Do you see something else? >> http://fossil.instinctive.eu/natools/dir?ci=tip > Dirty question: is your Natools.Chunked_Strings interface to be with-used > or withed ? Same as Ada.Strings.Unbounded, really. I tend to with-rename, so I have never tried how it feels when with-used. However I don't see anything preventing it from being with-used. > If you heard about static polymorphism, and you feel that's a good idea, > you may face some issues with the actual spec. What kind of issues? Or rather, what issues that are not triggered exactly the same way by Ada.Strings.Unbounded? I genuinely don't see anything wrong... Thanks for your help, Natasha