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 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56131a5c3acc678e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-08 18:42:06 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!intern1.nntp.aus1.giganews.com!nntp.giganews.com!nntp.rapidnet.com!news.rapidnet.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 08 Dec 2003 20:42:04 -0600 Date: Mon, 08 Dec 2003 20:36:46 -0600 From: Chad Bremmon Reply-To: bremmon@acm.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question about OO programming in Ada References: <5JmdnUF_9o_ABE-iRTvUrg@rapidnet.com> <1070926760.852068@master.nyc.kbcfp.com> In-Reply-To: <1070926760.852068@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.13.119.30 X-Trace: sv3-vHFS/GwB0NDhBcOQgWurned5zeVk+B4adg6ieATVzew3Pn76+qQ5291V48g5SAWj+XFWzyKg/V1Hwuf!Rq0A8V7YaDWGwYaS6uXgeJjL32vxYRX7DWYix4/IsAUBD8/yBWjvkRBbxjQ5LpGbkptUYFD/LOKP X-Complaints-To: abuse@rapidnet.com X-DMCA-Complaints-To: abuse@rapidnet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:3252 Date: 2003-12-08T20:36:46-06:00 List-Id: 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. You can tell by looking at the LED. Is_On is a function to check the state of the register in question. Enough... We're in the team ada room. I have been explaining how Ada works. I don't particularly care how C++ works. Chad Hyman Rosen wrote: > Chad Bremmon wrote: > >> Nobody complained when I write this article...disagreeing with an >> article that complained there was too much Overhead in OO in General. >> http://www.embedded.com/2000/0010/0010feat2.htm > > > Well, now that I've read it, how in the world does > Create(System.Address; Opsys.Unsignedshort) > belong as part of the specification of a Light class? > And what is it about your Ada code that couldn't just > as easily be done in C++? > > Oh, and by the way, your sample turn_on and turn_off > functions don't change the state of the Is_On boolean, > so you can never turn a light off once you turn it on! >