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,d0fa2610a6bea4ec X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Nested declares, constant size arrays and clarity References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1191457257 12.201.97.213 (Thu, 04 Oct 2007 00:20:57 GMT) NNTP-Posting-Date: Thu, 04 Oct 2007 00:20:57 GMT Organization: AT&T ASP.att.net Date: Thu, 04 Oct 2007 00:20:57 GMT Xref: g2news2.google.com comp.lang.ada:2286 Date: 2007-10-04T00:20:57+00:00 List-Id: Mateusz Papiernik wrote: > > I'm starting off with Ada95. I'm having some problems with clarity of my > solution, which - I think - is not as good as I would like to. You're right. Most of them can be corrected by learning to use the underline in identifiers. My_Array is much clearer than Myarray. Uniform capitalization will help, too: mxp, MyArray, sizegiven, ... > The problem is, I don't really like the idea of declaring some functions > in the root procedure declaration, and some others in nested declare > section. Due to that I've got function implementations in two places, > which somehow feels awkward to me. I don't see any problem with your approach; it seems clear and easy to understand to me. But the use of unconstrained array types and operations on them, as suggested elsewhere, may help give you something more to your taste. -- Jeff Carter "Spam! Spam! Spam! Spam! Spam! Spam! Spam! Spam!" Monty Python's Flying Circus 53