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,34257fd17abeba14 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: [SPARK] Code safety and information hiding References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1155966039 12.201.97.176 (Sat, 19 Aug 2006 05:40:39 GMT) NNTP-Posting-Date: Sat, 19 Aug 2006 05:40:39 GMT Date: Sat, 19 Aug 2006 05:40:39 GMT Xref: g2news2.google.com comp.lang.ada:6266 Date: 2006-08-19T05:40:39+00:00 List-Id: Robert A Duff wrote: > > I don't agree that package-spec variables should be illegal. Such a > rule accomplishes nothing, since the programmer can just have a getter > and a setter, which is just as evil. In some rare cases, a package-spec > variable makes sense, and in those cases, the getter/setter method is no > better (just more verbose). Designs based around global (package spec) variables are clearly done by people who are not competent to be designing SW. Such people can always find others ways to create SW that's just as bad. But such a person might not immediately think in terms of getter/setter operations if denied the use of global variables, so not allowing them might provide a little pressure towards better designs. The real solution, recognizing that all SW people are not equal, doesn't seem likely to happen any time soon. -- Jeff Carter "Apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, the fresh water system, and public health, what have the Romans ever done for us?" Monty Python's Life of Brian 80