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!news.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Question on bounded / unbounded strings Date: Thu, 22 Sep 2016 13:08:37 +0200 Organization: A noiseless patient Spider Message-ID: References: <11ee98f5-d373-4c72-8562-c310cc76817d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 22 Sep 2016 11:08:32 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="45bffd6a911624777cad79aac3181090"; logging-data="10672"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oNOjifJLB44lnHUyrazVW" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-Reply-To: Cancel-Lock: sha1:gIULGEzvEmLo1H9qPajUVzLZa8s= Xref: news.eternal-september.org comp.lang.ada:31841 Date: 2016-09-22T13:08:37+02:00 List-Id: Le 22/09/2016 à 11:53, Dmitry A. Kazakov a écrit : >> => Bounded_String is the way to go. > > Never. It is very difficult to find cases where > > 1. There is a hard upper bound, so hard that it would be feasible to > mold it into the type. > > 2. There is no cases where the upper bound implies another type. There > is nothing in the first name's length that makes first name different > from the second name. These are just unrelated things. > > The major reason for that is that constraint whatever it be is most > likely an implementation detail, which type difference is to reflect the > problem space. > ?? I don't follow you here. I may not have been explicit enough, but of course each type corresponds to a different instantiation of bounded strings, wich provide different types with unrelated lengths. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr