Re: [sv-bc] size() array methods for packed, unpacked and associative arrays

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Wed May 31 2006 - 09:01:07 PDT
We could define A.size() in terms of $size(A) and be done with it for
all array kinds. 

 

>I would at least like to see size() uniformly applied to all unpacked
arrays and remove num() for associative arrays.

>Allowing a method call packed arrays would be an enhancement at a lower
priority.

 

-- Brad

 

________________________________

From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Brad Pierce
Sent: Tuesday, May 30, 2006 11:09 PM
To: sv-bc@server.eda.org; sv-ec@server.eda.org
Subject: [sv-bc] size() array methods for packed, unpacked and
associative arrays

 

5.6.2 and 5.14.2.1 seem to suggest that the size() method is only
defined for dynamic arrays and queues, and not for packed, unpacked or
associative arrays.

 

If so, why is that?  For dynamic arrays, the size() method is defined in
terms of the $size() system function, which can also be applied to
packed, unpacked or associative arrays.

 

-- Brad
Received on Wed May 31 09:00:59 2006

This archive was generated by hypermail 2.1.8 : Wed May 31 2006 - 09:01:06 PDT