--On 22 September 2004 10:50 -0700 Richard E Maine <[log in to unmask]>
wrote:
>
> allocate(Q(10))
> P => Q(:)
>
I am not going to get involved in a detailed semantic argument but
I believe the use of "whole array" was meant to be different from a
selected slice. The significance was that Q(:) was a slice and Q was a
whole array. The bounds of Q(:) are 1: SIZE(Q) but those of Q, if Q
happened to be declared as Q(0:9) would be 0:9. Selections that happen
because of the accident of bound expression values to span the whole of the
set of elements of the array are still a slice not a whole array. A whole
array is an object that is named without selection qualifications.
--
Dr. Lawrie Schonfelder
Honorary Senior Fellow, University of Liverpool
Home: 1 Marine Park, West Kirby, Wirral, UK, CH48 5HN
Phone: +44 (151) 625 6986
|