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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.31.137 with SMTP id f131mr7928252iof.7.1518391646300; Sun, 11 Feb 2018 15:27:26 -0800 (PST) X-Received: by 10.157.95.135 with SMTP id g7mr378743oti.14.1518391646153; Sun, 11 Feb 2018 15:27:26 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!o66no779618ita.0!news-out.google.com!m16ni1618itm.0!nntp.google.com!w142no782538ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 11 Feb 2018 15:27:25 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e35:2ecd:88c0:c530:3f2c:3966:550d; posting-account=O1Kt4QoAAABKYAjrg-cGai_vZLnN2LEw NNTP-Posting-Host: 2a01:e35:2ecd:88c0:c530:3f2c:3966:550d References: <575826a1-c983-49aa-95e2-54048f6b7b5b@googlegroups.com> <3b72aae1-7ff4-48a9-a154-f17cd6784334@googlegroups.com> <7f5fec97-6ae6-4833-87df-77aac5a8e4ff@googlegroups.com> <191ef0a8-865e-49be-baa6-6c5c2d0b55fc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <39661f79-1df7-41fb-8bf9-fec1d60da217@googlegroups.com> Subject: Re: [ANN] List_Image v0.2.0 From: Lionel Draghi Injection-Date: Sun, 11 Feb 2018 23:27:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 2021405750 X-Received-Bytes: 3554 Xref: reader02.eternal-september.org comp.lang.ada:50381 Date: 2018-02-11T15:27:25-08:00 List-Id: Le vendredi 2 f=C3=A9vrier 2018 23:40:36 UTC+1, Randy Brukardt a =C3=A9crit= =C2=A0: > > Look's like we need a "Text" abstraction here.=20 >=20 > For what's its worth (probably very little :-), I used a list of unbounde= d=20 > strings for that purpose in my Trash-Finder spam filter. If I was doing i= t=20 > today, I'd probably use an indefinite vector of type String instead (lets= =20 > Ada handle memory management of the entire thing, not just the individual= =20 > lines, and the overhead would be about the same). A bit clunky to change = the=20 > length of a line (you have to use Replace_Element for that), but otherwis= e=20 > 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 anoth= er solution : I moved multi lines declarations to platform dependent child = packages named Unix_ and Windows_Predefined_Styles. =20 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 tagg= ed 1.0.0. Sounds strange if you consider that this is a POC. But I try to a= pply semantic versioning (https://semver.org/), and there is an API change,= so, +1.=20 And it should already be v3.0.0...=20 Not surprising that some developers feel better with calendar versioning (h= ttp://sedimental.org/designing_a_version.html)!