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,LOTS_OF_MONEY autolearn=ham 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 07:38:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Ada2005 Date: 12 Dec 2001 09:37:58 -0600 Organization: LJK Software Message-ID: References: <9v4jsj$bd1$1@infosun2.rus.uni-stuttgart.de> <9v7f26$qn2$1@infosun2.rus.uni-stuttgart.de> <3C1754BA.C4560423@informatik.uni-jena.de> <9v7q8r$1f5$1@infosun2.rus.uni-stuttgart.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008171480 3743 192.135.80.34 (12 Dec 2001 15:38:00 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Wed, 12 Dec 2001 15:38:00 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:17844 Date: 2001-12-12T09:37:58-06:00 List-Id: In article , Ted Dennison writes: > In article <9v7q8r$1f5$1@infosun2.rus.uni-stuttgart.de>, Peter Hermann says... >> >>Carsten Freining wrote: >>> Best example is the object oriented part, because it is not possible to have >>> constants as components. >> >>Compiler maintainers may insert the already existing keywork "constant" >>in coffee break time. > > 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 this: > they don't have packages to put their constants into. So if one wants to > associate a constant with a class, there is no choice but to do it this way and > waste the space. But in Ada we don't have that problem, so why do we need to > duplicate their nasty hack soultion to it? This could be used when some future version of the code would allow modification but the current one does not. That sort of issue, however, could also be handled with a good source code analysis tool, looking for locations that assign to the field. The source code analysis tool is probably better for such a temporary condition, since it get people familiar with the technique.