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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 13:48:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: Michal Nowak Newsgroups: comp.lang.ada Subject: Re: Placement of pragma Import Date: Mon, 09 Dec 2002 22:56:50 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <4S1J9.145$Z74.617@dfw-service2.ext.raytheon.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: avanie.enst.fr 1039470482 35607 137.194.161.2 (9 Dec 2002 21:48:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 9 Dec 2002 21:48:02 +0000 (UTC) Return-Path: In-reply-to: <4S1J9.145$Z74.617@dfw-service2.ext.raytheon.com> X-Mailer: Calypso Version 3.30.00.00 (3) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk X-Reply-To: vinnie@inetia.pl List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:31610 Date: 2002-12-09T22:56:50+01:00 On 2002-12-09 at 09:34 Wes Groleau wrote: >> 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." I was thinking about this little snippet of code I posted when replying, my fault that I was not precise enough. Yes, you're right that it depends from the construction of spec where this pragma should be placed. I had also a problem when some days ago I was doing sort of code review. The requirement was saying, that specified subprogram should be imported with intrinsic. The function was, but I saw no pragma. Finally I found it - two screens below in private section mixed between two records... - Michal "In the world of machines, virtual machines, dominated by software ... ... a new culture is born"