From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: explain error to me
Date: Fri, 06 Jul 2001 02:01:21 GMT
Date: 2001-07-06T02:01:21+00:00 [thread overview]
Message-ID: <3B451BE2.E0FFF67F@acm.org> (raw)
In-Reply-To: 08617.5643$Tv5.787326@news6-win.server.ntlworld.com
"chris.danx" wrote:
>
> 2) declare a type like this
>
> -- a type representing the range of the number
> -- of houses
> SUBTYPE NumHouses is Natural range 1..25;
>
> then declare houseArrays like this
>
> TYPE HouseArrays IS ARRAY (NumHouses'first..NumHouses'last) OF HouseHolds;
This is better written as
type House_Arrays is array (Numhouses) of Households;
>
> 3) Reuse ArrayCounter type as in 2.
>
> TYPE HouseArrays IS ARRAY (ArrayCounter'first..ArrayCounter'last) OF HouseHolds;
Again, this would be better with just "(Arraycounter)" for the range.
--
Jeff Carter
"You tiny-brained wipers of other people's bottoms!"
Monty Python & the Holy Grail
prev parent reply other threads:[~2001-07-06 2:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-05 22:18 explain error to me Beau
2001-07-05 22:41 ` Don't read any more, I am an idiot. Fixed it myself Beau
2001-07-05 22:53 ` chris.danx
2001-07-05 22:48 ` explain error to me chris.danx
2001-07-06 2:01 ` Jeffrey Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox