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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,627a173c3309b242 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Allocation of local constant arrays Date: Thu, 20 May 2004 13:24:07 +0200 Organization: AdaCL Message-ID: <17820062.Hog322c0fT@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1085052308 04 12100 bR08GOZ6P7uGSLfH 040520 11:25:08 X-Complaints-To: usenet-abuse@t-online.de X-ID: b0qkkMZGreKbs0iTSHzUxrEx6prWIlJLAb14j-ty8GO3R+d2VwKcEM User-Agent: KNode/0.7.7 Xref: controlnews3.google.com comp.lang.ada:703 Date: 2004-05-20T13:24:07+02:00 List-Id: Davide wrote: > > "Robert I. Eachus" ha scritto: > >> then put everything as constants in the >> package body. > > As a general way to design the software, if you have constants used only > by a procedure, do you prefer (for the final application) to nest them in > that procedure or to keep them together with all the other constants in > the package body, then visible also to procedures not referencing them? > > The question, in other words, is: locate the data closest as possible to > operations who used them or tend to "globalize" their visibility also when > not necessary? > > Waiting for opinions. Normally I put them with the procedure. Sometimes I put them in packages inside the procededure: procedure Proc is package Pack ... end Pack; begin ... With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com