comp.lang.ada
 help / color / mirror / Atom feed
From: Lionel Draghi <lionel.draghi@gmail.com>
Subject: Re: [ANN] List_Image v0.2.0
Date: Sun, 11 Feb 2018 15:27:25 -0800 (PST)
Date: 2018-02-11T15:27:25-08:00	[thread overview]
Message-ID: <39661f79-1df7-41fb-8bf9-fec1d60da217@googlegroups.com> (raw)
In-Reply-To: <p52pd2$ri7$1@franka.jacob-sparre.dk>

Le vendredi 2 février 2018 23:40:36 UTC+1, Randy Brukardt a écrit :
> > Look's like we need a "Text" abstraction here. 
> 
> For what's its worth (probably very little :-), I used a list of unbounded 
> strings for that purpose in my Trash-Finder spam filter. If I was doing it 
> today, I'd probably use an indefinite vector of type String instead (lets 
> Ada handle memory management of the entire thing, not just the individual 
> lines, and the overhead would be about the same). A bit clunky to change the 
> length of a line (you have to use Replace_Element for that), but otherwise 
> about the same as using an Unbounded_String.

I haven't given up on that Text package, but to avoid forcing users to pull to much packages (unless standard) with this simple utility, I tried another solution : I moved multi lines declarations to platform dependent child packages named Unix_ and Windows_Predefined_Styles.
 
The choice will still be done explicitly in the user code.
And there is a not so satisfying code duplication.
I check in the Makefile that both package are identical except for the EOL definition and the package Name. But most users will use only one of those packages, and I felt another generic would be too much. YMMV

Next step : back on exploring the "Text" way.

Lionel

PS : the current version https://github.com/LionelDraghi/List_Image is tagged 1.0.0. Sounds strange if you consider that this is a POC. But I try to apply semantic versioning (https://semver.org/), and there is an API change, so, +1. 
And it should already be v3.0.0... 
Not surprising that some developers feel better with calendar versioning (http://sedimental.org/designing_a_version.html)!


  reply	other threads:[~2018-02-11 23:27 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31  0:44 [ANN] List_Image v0.2.0 Lionel Draghi
2018-01-31  7:27 ` briot.emmanuel
2018-01-31 21:11   ` Lionel Draghi
2018-02-01  8:05     ` briot.emmanuel
2018-02-01  9:48     ` J-P. Rosen
2018-02-01 15:48       ` Lionel Draghi
2018-02-01 17:20         ` bozovic.bojan
2018-02-01 18:31           ` Lionel Draghi
2018-02-01 18:45             ` bozovic.bojan
2018-02-01 20:26               ` Dennis Lee Bieber
2018-02-02  5:25                 ` J-P. Rosen
2018-02-02  0:02             ` Randy Brukardt
2018-02-02  0:31               ` Simon Clubley
2018-02-02 18:34               ` Lionel Draghi
2018-02-02 22:40                 ` Randy Brukardt
2018-02-11 23:27                   ` Lionel Draghi [this message]
2018-02-12  6:55                     ` J-P. Rosen
2018-02-12 20:44                       ` Lionel Draghi
2018-02-12 10:57                     ` Stefan.Lucks
2018-02-12 21:41                       ` Lionel Draghi
2018-03-07 10:17                     ` Semantic versioning (Was: [ANN] List_Image v0.2.0) Jacob Sparre Andersen
2018-02-01 20:11         ` [ANN] List_Image v0.2.0 J-P. Rosen
2018-02-01 21:08           ` Simon Wright
2018-02-01  0:27   ` Randy Brukardt
2018-02-01  7:55     ` briot.emmanuel
2018-02-01 23:56       ` Randy Brukardt
2018-02-02 15:48         ` Simon Wright
2018-02-02 22:54           ` Randy Brukardt
2018-02-01  8:08     ` Simon Wright
2018-02-01  8:24       ` Dmitry A. Kazakov
replies disabled

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