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-Thread: 103376,782d6c8a12248b09 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Ada Recursion with strings Date: Wed, 01 Oct 2008 17:18:17 +0200 Organization: Adalog Message-ID: References: <2fJEk.367687$yE1.299201@attbi_s21> <758a1a91-7521-4ad3-9af0-a79d434ae60e@v28g2000hsv.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1222871464 24986 195.25.228.57 (1 Oct 2008 14:31:04 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 1 Oct 2008 14:31:04 +0000 (UTC) User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <758a1a91-7521-4ad3-9af0-a79d434ae60e@v28g2000hsv.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:2188 Date: 2008-10-01T17:18:17+02:00 List-Id: 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" :-) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr