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,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9fdb4e673a488b12 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-09 06:34:41 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail From: Wes Groleau Reply-To: wesgroleau@despammed.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Placement of pragma Import References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4S1J9.145$Z74.617@dfw-service2.ext.raytheon.com> Date: Mon, 09 Dec 2002 09:34:40 -0500 NNTP-Posting-Host: 151.168.133.155 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1039444480 151.168.133.155 (Mon, 09 Dec 2002 08:34:40 CST) NNTP-Posting-Date: Mon, 09 Dec 2002 08:34:40 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:31584 Date: 2002-12-09T09:34:40-05:00 List-Id: > Yes, I agree, that it looks better to put it in private section. Please, no. The private section is for things you don't want client code to access directly (but that can't go in the body). No client code can access the pragma, so the only reason to not put it right next to what it affects is to avoid clutter. BUT, putting things like this and rep-clauses at a distance from what they affect invites forgetting to update them during maintenance. Or worse, being forced to rearrange them due to maintenance introducing a "freezing" construct. I had to re-organize a hundred files for an Ada 95 port because folks back in the 1980s thought that putting rep-specs in the private section was "information hiding."