comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.jrcarter.not@acm.nospam.org>
Subject: Re: Nested declares, constant size arrays and clarity
Date: Thu, 04 Oct 2007 00:20:57 GMT
Date: 2007-10-04T00:20:57+00:00	[thread overview]
Message-ID: <JlWMi.116606$Xa3.97779@attbi_s22> (raw)
In-Reply-To: <fe1748$it1$1@nemesis.news.tpi.pl>

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



  parent reply	other threads:[~2007-10-04  0:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 22:58 Nested declares, constant size arrays and clarity Mateusz Papiernik
2007-10-03 23:49 ` Ludovic Brenta
2007-10-04  8:49   ` Mateusz Papiernik
2007-10-04 11:33     ` Ludovic Brenta
2007-10-04 12:45       ` Dmitry A. Kazakov
2007-10-04 13:11         ` Mateusz Papiernik
2007-10-05  5:00           ` Jeffrey R. Carter
2007-10-05  4:58         ` Jeffrey R. Carter
2007-10-05  7:38           ` Dmitry A. Kazakov
2007-10-05 17:08             ` Jeffrey R. Carter
2007-10-05  4:54     ` Jeffrey R. Carter
2007-10-04  0:20 ` Jeffrey R. Carter [this message]
2007-10-04  8:51   ` Mateusz Papiernik
2007-10-05  2:45     ` Steve Whalen
2007-10-04  0:23 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox