comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Ada code snippet help (array of arrays)
Date: Thu, 14 May 2009 08:16:22 -0700 (PDT)
Date: 2009-05-14T08:16:22-07:00	[thread overview]
Message-ID: <491646c2-ec53-4f54-9e6e-f89d59f40b76@d38g2000prn.googlegroups.com> (raw)
In-Reply-To: 5628eb43-3d56-4b20-976a-6bb0f40dcd49@s31g2000vbp.googlegroups.com

On May 14, 1:05 am, Egil Høvik <egilho...@hotmail.com> wrote:

> >    T: constant Boolean := True;
> >    F: constant Boolean := False;
>
> No need to define your own constants... True and False are
> already enumerated values (constants) of type Boolean.

I think he defined those just for readability.  If you have a large
constant array, it might look better, look more like a chart, take up
less space on the screen, be easier to line up, etc., if you can do it
with shorter names such as single letters.  I've seen this sort of
thing done before.

                              -- Adam



  reply	other threads:[~2009-05-14 15:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-13 14:11 Ada code snippet help (array of arrays) Vamp4L
2009-05-13 14:25 ` Georg Bauhaus
2009-05-13 14:28   ` Vamp4L
2009-05-13 15:05 ` Jacob Sparre Andersen
2009-05-14  8:05 ` Egil Høvik
2009-05-14 15:16   ` Adam Beneschan [this message]
2009-05-14 17:14     ` Dmitry A. Kazakov
replies disabled

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