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,3a6aafa384c96cc6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-02 09:14:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!151.189.0.75!newsfeed.germany.net!newsfeed2.easynews.net!easynews.net!newsfeed01.sul.t-online.de!t-online.de!dns.phoenix-ag.de!news.uni-stuttgart.de!not-for-mail From: Peter Hermann Newsgroups: comp.lang.ada Subject: Re: with child: access to parent Date: 2 Oct 2001 16:14:41 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <9pcp5h$9u3$1@infosun2.rus.uni-stuttgart.de> References: <9pc3jp$old$1@infosun2.rus.uni-stuttgart.de> <4Zgu7.7342$sh6.2399083554@newssvr30.news.prodigy.com> <9pchrq$8vt$1@infosun2.rus.uni-stuttgart.de> <3BB9DAA4.42A3937A@sparc01.ftw.rsc.raytheon.com> NNTP-Posting-Host: iris16.csv.ica.uni-stuttgart.de User-Agent: tin/pre-1.4-980117 (UNIX) (IRIX/6.5 (IP22)) Xref: archiver1.google.com comp.lang.ada:13629 Date: 2001-10-02T16:14:41+00:00 List-Id: Wes Groleau wrote: > Some style guides suggest _always_ listing the parent specifically > if anything in it is referenced. I guess the idea is to prevent > compile errors if the child references are removed. But how many > places actually take the trouble of removing unused withs? And > what is the more expensive way to find the need to add one--to > carefully eyeball the code, or to compile and look at the messages? Of course it is a welcome convenience to save a couple of "with"s. An advanced binder/linker will automagically leave out heavy-weight unused parts of executable code, anyway. For readable programs I am considering a largely use-less style more favorable than the above (style-) rule. -- Peter Hermann Tel+49-711-685-3611 Fax3758 ica2ph@csv.ica.uni-stuttgart.de Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen http://www.csv.ica.uni-stuttgart.de/homes/ph/ Team Ada: "C'mon people let the world begin" (Paul McCartney)