From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Generic package array parameter
Date: 1999/11/13
Date: 1999-11-13T00:00:00+00:00 [thread overview]
Message-ID: <wccaeoi2f05.fsf@world.std.com> (raw)
In-Reply-To: 382c7b29_1@news1.prserv.net
"Matthew Heaney" <matthew_heaney@acm.org> writes:
> Don't criticize what you don't understand.
>
> (Anonymous array types aren't allowed because, what would "=" mean for
> the type? What would ":=" mean for the type?
>
> function (L, R : ???) return Boolean;
>
> What's the type of the formal parameters of function "="?
Well, for regular run-of-the-mill anonymous array types,
the answer is that ??? is the anonymous array type.
Eg:
X: array(Integer range 1..10) of Character := "abcdefghij";
...
if X = "Hello, world" then ...
But I think Tucker's idea (never use anonymous array types)
is better, at least as a rule of thumb.
- Bob
next prev parent reply other threads:[~1999-11-13 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-04 0:00 HELP - MAC compilation of an Ada program William A Whitaker
1999-11-05 0:00 ` James E. Hopper
1999-11-05 0:00 ` Robert Dewar
1999-11-12 0:00 ` Generic package array parameter Mario Amado Alves
1999-11-12 0:00 ` Tucker Taft
1999-11-12 0:00 ` Matthew Heaney
1999-11-13 0:00 ` Robert A Duff [this message]
1999-11-23 0:00 ` Mario Amado Alves
1999-11-23 0:00 ` Matthew Heaney
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox