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,ASCII Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!kanaga.switch.ch!switch.ch!news.tele.dk!news.tele.dk!small.news.tele.dk!uio.no!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Thu, 02 Oct 2008 10:24:33 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <48e4772c$0$23609$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1222932268 news.tdc.fi 23609 81.17.205.61:32843 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:2190 Date: 2008-10-02T10:24:33+03:00 List-Id: Jean-Pierre Rosen wrote: > 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" :-) That reminds me of a former colleague, some decades ago, who was tearing his hair out because his astronomical calculations with a FORTRAN program were going wrong. Turns out he had the value of PI as a variable in a COMMON area, after an array, and an indexing error on this array was changing the value of PI, affecting several trigonometric formulae... -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .