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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!news.germany.com!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 01 Oct 2008 18:47:46 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Recursion with strings References: <2fJEk.367687$yE1.299201@attbi_s21> <758a1a91-7521-4ad3-9af0-a79d434ae60e@v28g2000hsv.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <48e3a9b2$0$17125$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 01 Oct 2008 18:47:46 CEST NNTP-Posting-Host: 37c23299.newsspool2.arcor-online.net X-Trace: DXC=R==FI1dB@LQmG86`U=_nC_A9EHlD;3YcR4Fo<]lROoRQ4nDHegD_]RU?On Jean-Pierre Rosen schrieb: > Adam Beneschan a écrit : >> Yep, the advantage of that is that if the people who design the >> Internet communication protocols suddenly decide that IP addresses are >> going to use 9-bit bytes, all you have to do is change one constant, >> rather than try to find all the 8's in your code and change them, >> which is more error-prone. >> > Reminds me of an old advice explaining why named constants were better > than numerical values. They took the example of Pi, saying it would make > maintenance easier "should the value of Pi change" :-) > See ftp://pi.super-computing.org/README for currently known values to be used for Ada.Numerics.["03C0"]. In case you are wondering about the Perlish spelling of that Ada constant, it is Ada.Numerics.π encoded for those of our computers that cleanly represent characters using 7-bit bytes. Which should of course be the default representation by any modern engineering standard. Who would build a keyboard having 16#110000# keys for just one ancient constant?