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-7-bit X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-09 03:24:43 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada Date: Tue, 9 Dec 2003 11:24:42 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <5JmdnUF_9o_ABE-iRTvUrg@rapidnet.com> <1070926760.852068@master.nyc.kbcfp.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1070969082 960 134.91.1.34 (9 Dec 2003 11:24:42 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Tue, 9 Dec 2003 11:24:42 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:3268 Date: 2003-12-09T11:24:42+00:00 List-Id: Chad Bremmon wrote: : The state of the boolean is not kept in a variable. The code I wrote : actually changes the register to turn the light on and off. A boolean : is not necessary to keep track of the light. Either the damn light is : on or off. Though, if you are the maintainer of a program and see a record with a boolean component that is never used, how do you, as a maintainer of readable code, decide what the boolean is about? All the more when the Boolean, by its name, is obviously related to subprograms with similar names and "matching" parameter profile? And then you learn that the author says, the Boolean is unnecessary? (And this has nothing whatsoever to do with C++ or Ada, does it?) I would have enjoyed the article more if it had stuck to the interesting and clear explanation of why O-O is useful, and how it is done in Ada. I could imagine that due to its C++ bashing readers are less likely to see advantages of Ada that you have depicted. -- Georg