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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Tue, 03 Oct 2017 08:48:12 +0100 Organization: A noiseless patient Spider Message-ID: References: <915874b5-52c0-4aa8-9023-82fddedb816f@googlegroups.com> <67345f73-530c-400b-9eb4-63eeb440154c@googlegroups.com> <9a6338d9-83be-4e45-b8b7-edc56e33537f@googlegroups.com> <2deb28e2-f7e8-4461-b8b8-c2c6cf2784aa@googlegroups.com> <5de470d2-aa3d-4c02-ae2b-266c33a289fe@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b669f32a274d953172a4cf64615e5845"; logging-data="11769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Lggv5lxvuPV6s55b4QNhDR+4erCguU3g=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (darwin) Cancel-Lock: sha1:iWAuo+tPOw70UwIkZzue8LZzWns= sha1:gvuIAIMlZ3fry3GvgeaqSqjgdjw= Xref: news.eternal-september.org comp.lang.ada:48306 Date: 2017-10-03T08:48:12+01:00 List-Id: "Randy Brukardt" writes: > Tom used bounded strings in some parts of the Claw interface (I forget > exactly which ones). The underlying Win32 record types acted like a > bounded string, so it probably seemed like a reasonable mapping. So I > can say conclusively that there is at least one use of a bounded > string out there, and Claw would break if the package was removed. > > But using them is a pain-in-the-a**. I'd much rather that the types > had been mapped to regular fixed strings. I quite agree that using bunded strings in a public interface is a mistake. > In general, I agree with you; Bounded strings have no real use > (especially on Janus/Ada, where the implementation of a generic like > that uses implicit heap allocation anyway - so there is no practical > difference between it and unbounded strings). I have a requirement (based on an interface to an external entity) to store quite a few names of length no more than 14 characters. It seems reasonable to implement the storage using Bounded_Strings (unless of course the GNAT overhead gets too much).