From: csampson@inetworld.net (Charles H. Sampson)
Subject: Re: Missing Index Value in Array Aggregate
Date: Thu, 27 Sep 2007 20:21:13 -0700
Date: 2007-09-27T20:21:13-07:00 [thread overview]
Message-ID: <1i548co.yz2f6m45x0mwN%csampson@inetworld.net> (raw)
In-Reply-To: fdeq3j$91r$1@jacob-sparre.dk
Thanks to both of you for clarifying this. For some
reason, I tend to forget sliding when thinking about
arrays in the abstract, although I use it quite often.
I should have given more detail of the context.
Although it's not relevant now, here it is: The aggregate
was the initial value of a constant array object, the type
of that object being an anonymous array type whose index
is a constrained enumeration type. My compiler did give
me the (proper) warning of a constraint error at run time.
Unfortunately, the warning was overlooked because the
compiler tends to put out a bunch of warnings of much
less value.
My characterization of Ada as trying to "do... as much
as possible at compile-time" was off base. While you do
get a lot more information from an Ada compiler than from
those for most other languages, I agree that Ada's
consistency, it's very small number of special cases,
is much more important.
So, while the case I asked about was surprising at
first glance, I think the rationale behind it is fine.
Charlie
--
For an email response, insert "0824" between the 'c' and 's'.
next prev parent reply other threads:[~2007-09-28 3:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 13:21 Missing Index Value in Array Aggregate Charles H. Sampson
2007-09-26 15:54 ` Adam Beneschan
2007-09-26 23:33 ` Randy Brukardt
2007-09-28 3:21 ` Charles H. Sampson [this message]
2007-09-28 10:05 ` Stephen Leake
2007-09-28 10:26 ` Ludovic Brenta
2007-09-28 16:21 ` Pascal Obry
2007-09-28 20:26 ` Maciej Sobczak
2007-10-03 17:01 ` roderick.chapman
2007-09-29 15:31 ` Charles H. Sampson
2007-09-30 11:02 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox