comp.lang.ada
 help / color / mirror / Atom feed
From: Natasha Kerensikova <lithiumcat@gmail.com>
Subject: Re: Ann: Natools.Chunked_Strings, beta 1
Date: Wed, 30 Nov 2011 11:04:24 +0000 (UTC)
Date: 2011-11-30T11:04:24+00:00	[thread overview]
Message-ID: <slrnjdc3da.1lme.lithiumcat@sigil.instinctive.eu> (raw)
In-Reply-To: op.v5q8x9e0ule2fv@douda-yannick

Hello,

On 2011-11-30, Yannick Duchêne <yannick_duchene@yahoo.fr> wrote:
> Le Tue, 29 Nov 2011 16:16:16 +0100, Natasha Kerensikova  
><lithiumcat@gmail.com> 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



      reply	other threads:[~2011-11-30 11:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-29 15:16 Ann: Natools.Chunked_Strings, beta 1 Natasha Kerensikova
2011-11-29 15:37 ` Pascal Obry
2011-11-29 16:34   ` Natasha Kerensikova
2011-11-29 17:08     ` Georg Bauhaus
2011-11-30  9:51       ` Natasha Kerensikova
2011-11-29 20:25     ` Randy Brukardt
2011-11-30 10:44     ` Yannick Duchêne (Hibou57)
2011-11-30 10:39   ` Yannick Duchêne (Hibou57)
2011-11-30 10:57     ` Dmitry A. Kazakov
2011-12-01  0:11       ` Randy Brukardt
2011-12-01  8:30         ` Dmitry A. Kazakov
2011-12-01 23:26           ` Vinzent Hoefler
2011-12-02  8:27             ` Dmitry A. Kazakov
2011-12-02  9:30               ` Georg Bauhaus
2011-12-02 13:11                 ` Dmitry A. Kazakov
2011-12-02  0:39           ` Randy Brukardt
2011-12-01  9:02         ` Yannick Duchêne (Hibou57)
2011-11-30 13:08     ` Natasha Kerensikova
2011-11-30 19:39       ` Jeffrey Carter
2011-12-01 10:57         ` Natasha Kerensikova
2011-12-01 19:07           ` Jeffrey Carter
2011-12-01 21:19             ` Yannick Duchêne (Hibou57)
2011-12-01 22:49               ` Natasha Kerensikova
2011-12-02 16:16         ` Tero Koskinen
2011-12-02 17:36           ` Adam Beneschan
2011-12-02 18:52             ` Tero Koskinen
2011-12-02 18:14           ` Yannick Duchêne (Hibou57)
2011-12-02 19:07             ` Adam Beneschan
2011-11-30 10:33 ` Yannick Duchêne (Hibou57)
2011-11-30 11:04   ` Natasha Kerensikova [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox