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!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Image attribute (yet again) Date: Tue, 28 Apr 2020 08:02:19 +0200 Organization: Adalog Message-ID: References: <26e971a9-6fcc-4e4c-84ee-d74aecd5b217@googlegroups.com> <2c769c87-72f2-4107-b0bf-3846e3ae6c7a@googlegroups.com> <670160da-e66d-446f-a415-27df39d9a73f@googlegroups.com> <250c110a-667d-419a-b52a-89646c178d99@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 28 Apr 2020 06:02:18 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f723c19487ff37b46636a7a0c755088a"; logging-data="14763"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TV+gWKajhbuEgoyIf0KCf" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cancel-Lock: sha1:B533ej8xhuzcZlrBGt6BjV6g8Ks= In-Reply-To: <250c110a-667d-419a-b52a-89646c178d99@googlegroups.com> Content-Language: fr Xref: reader01.eternal-september.org comp.lang.ada:58517 Date: 2020-04-28T08:02:19+02:00 List-Id: Le 27/04/2020 à 16:10, Jere a écrit : >> This feature requires that if you write a number in a certain base, then >> you need to recognize the base when reading. So it's not an error, but a >> design decision. Of course, like any design decision, you may agree with >> it or not. > As I have thought about this more, I don't think I see the need > for the "16#" and associated for this functionality to work. If you > are using the reflective Get to the Put, that knows the base. The > text doesn't need to specify it. If you want something more runtime > adaptive, then sure, but for pure reflective Get/Put it isn't needed > that I can tell. In the case where a more runtime adaptive strategy > is desired, that is where I would have expected the language to want Huh? The Get procedure has no parameter for the base, it accepts whatever is in the file. The design principle is that you are precise on output, and tolerant on input. Same idea with 'Image (required to be upper case) and 'Value (accepts any case). -- 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