Re: [sv-ec] question on dynamic arrays

From: Arturo Salz <Arturo.Salz_at_.....>
Date: Tue May 31 2005 - 09:51:44 PDT
Francoise,

The indices of dynamic arrays are indeed [0:size-1] --- same as for string.

    Arturo

----- Original Message ----- 
From: Francoise Martinolle 
To: sv-ec@eda.org 
Sent: Tuesday, May 31, 2005 6:41 AM
Subject: [sv-ec] question on dynamic arrays


    I searched through the description of dynamic arrays in the 1800 latest draft and
    I cannot find a specification of what are the defined array indexes for dynamic array which has been
    allocated.
    As per LRM, dynamic array is allocated using new operator:
    dyn_arr = new[size]
    It specifies that the size of the new dyn_arr is 'size' but
    what is left and right range index for dyn_arr?

    Is it [0 :size-1] like in C?

    Francoise
           '
Received on Tue May 31 09:51:29 2005

This archive was generated by hypermail 2.1.8 : Tue May 31 2005 - 09:51:38 PDT