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!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Tue, 3 Oct 2017 15:20:21 -0500 Organization: JSA Research & Innovation 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> Injection-Date: Tue, 3 Oct 2017 20:20:24 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="9597"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: news.eternal-september.org comp.lang.ada:48325 Date: 2017-10-03T15:20:21-05:00 List-Id: "G.B." wrote in message news:oqvlie$lh9$1@dont-email.me... > On 03.10.17 09:48, Simon Wright wrote: > Is it really possible to create less overhead? E.g., by using > allocators, storage pools, and adding string operations as > necessary? Yes, because I'd solve Simon's problem with a record (and have done so repeatedly): type Simon_Strings is Data : String (1..14); Len : Natural; end record; And that has less overhead than the discriminated string type. (Not a lot less, but definitely less.) > (But, still, predefined string types from the Ada library > depend on types Positive and Natural with their implementation > defined ranges. I understand that the 'Size of these types > is 16 in Janus/Ada?) Yup. One can define a string type in Janus/Ada using Long_Integer, and I've occassionally done that. I have had programs run into the 32767 character limit in the Unbounded string case; another reason that depending on predefined types is evil. Randy.