From: Preben Randhol <randhol+valid_for_reply_from_news@pvv.org>
Subject: Re: Question about Ada and constant Arrays
Date: Mon, 10 Nov 2003 17:11:56 +0000 (UTC)
Date: 2003-11-10T17:11:56+00:00 [thread overview]
Message-ID: <slrnbqvhms.97p.randhol+valid_for_reply_from_news@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: slrnbqvhev.97p.randhol+valid_for_reply_from_news@kiuk0156.chembio.ntnu.no
On 2003-11-10, Preben Randhol <randhol+valid_for_reply_from_news@pvv.org> wrote:
> My_Array : constant Test_Array :=
> (1 => (True, "Test1", 1),
> 2 => (False, "Test2", 2),
> 3 => (False, "Test3", 4),
> 4 => (False, "Test4", 8),
> 5 => (True, "Test5", 16));
This can also be written as:
My_Array : constant Test_Array := ( (True, "Test1", 1), (False,
"Test2", 2), (False, "Test3", 4), (False, "Test4", 8), (True,
"Test5", 16) );
Depending on your taste :-)
HTH
Preben
--
"Saving keystrokes is the job of the text editor, not the programming
language."
next prev parent reply other threads:[~2003-11-10 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-10 16:49 Question about Ada and constant Arrays Stephane Richard
2003-11-10 17:07 ` Preben Randhol
2003-11-10 17:10 ` Stephane Richard
2003-11-10 17:13 ` Preben Randhol
2003-11-10 17:11 ` Preben Randhol [this message]
2003-11-11 5:41 ` Nick Roberts
2003-11-11 9:34 ` Lutz Donnerhacke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox