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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news.eternal-september.org!.POSTED!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Functions vs constants Date: Fri, 25 Jul 2014 08:45:36 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 25 Jul 2014 06:45:37 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="d223fcf3a4ca112a437d10e30ad68eca"; logging-data="26655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195SWqJOf4aOp/d20J2t6FhG5cs1cIvZQ8=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Cancel-Lock: sha1:MRw78o2qJQwg3TbSaUQTxYac6xs= Xref: news.eternal-september.org comp.lang.ada:21199 Date: 2014-07-25T08:45:36+02:00 List-Id: On 25/07/14 06:56, Randy Brukardt wrote: >> I disagree, because the client should perhaps be diagnosed broken, for >> reasons of maintainability of references. > > Sorry, but that's not the real world. If I add something to Claw that breaks > most existing clients, I'm going to get a bunch of annoyed (or worse) > messages from customers. People are not interested in spending a lot of time > "fixing" code that's previously worked and does not use any of the new > stuff. All right, the sledge hammer (fixing, not adding more duct tape) is typically part of only bigger managerial changes. OTOH, new languages Hack, Swift and Scala will be examples of how money or size can invalidate all such arguments. They all preserve concepts, run-time, and thus knowledge, though. > In what sense is Put for a > String overriding Put for a Float? Dmitry covered this ground pretty well in > his response. His answer includes, actually, that for Put you need non-Ada only if the file argument should be included in dispatching. Any Float or String arguments could be passed to an overridden version of Put determined statically.