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.6 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c424d8135e68278 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-12 10:18:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <6ZMR7.38074$ER5.458476@rwcrnsc52> Subject: Re: Ada2005 Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 12 Dec 2001 13:17:43 EST Organization: http://www.newsranger.com Date: Wed, 12 Dec 2001 18:17:43 GMT Xref: archiver1.google.com comp.lang.ada:17854 Date: 2001-12-12T18:17:43+00:00 List-Id: In article <6ZMR7.38074$ER5.458476@rwcrnsc52>, tmoran@acm.org says... > >> >> Best example is the object oriented part, because it is not possible to >> >> have constants as components. >> Why would anyone want to? Isn't it rather stupid to allocate space in several >> objects to a field that will always be the same? I understand why C++ does > Not all records are designed de novo. For instance, in interfacing to >MS Windows you will find lots of places where a particular interface >record field is a constant. Yeah, I've run into that as well. But that and other such interface-specific annoyances are adequately handled by putting that yucky interface into a package that abstracts away such details (as I'm sure you are quite familiar with :-) ). Ada provides enough help here by allowing you to predesignate the field's value in the type declaration. That issue really has nothing to do with why the feature exists in C++, which is to provide for class-wide constants. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.