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

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed May 31 2006 - 08:26:11 PDT
Why? Because different committees wrote different sections of the LRM
and not enough people are willing or have the time to fix everything.

 

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.

 

________________________________

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 08:26:05 2006

This archive was generated by hypermail 2.1.8 : Wed May 31 2006 - 08:26:31 PDT